SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I cannot burn the ISO because what I thought was a dvd turned out to be a RW CD and 15.0 is too big, so for better or worse I have to install Thonny on 14.2
I didnt know I did messed it up but it seems I may have.
since posting
I have remove python 3 and reinstalled it.
I also imported tk
viz
Code:
bash-4.3$ python3
Python 3.7.2 (default, Jul 4 2022, 18:25:41)
[GCC 5.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> pip3 install tk
File "<stdin>", line 1
pip3 install tk
^
SyntaxError: invalid syntax
>>> import tk
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.7/tkinter/__init__.py", line 36, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
>>> pip3 install tkinter
File "<stdin>", line 1
pip3 install tkinter
^
SyntaxError: invalid syntax
>>>
So as I see it python3 is installed and running and tk is installed OK.
What next?
Python works just fine. It works it's own python way. I wish people would not use pip at all. If you have a machine with a package manager, the package manager keeps everything up to date and everything matches. Install python and python modules with your package manager.
I you install something with pip, your package manager does not know about it, and now your python file tree is all messed up.
What can you do if a python modules is not in your distros repos.
You build/install something with pip as user. And install it into a directory in /home. Use it from there, or make a virtual python env. Then you won't mess up your file tree, or your installation of python, and you won't be mad. You just have a piece of python software that doesn't not work.
Or, use your distros build tools to build/make a package for your distro, according to your distos docs, and install that package with your package manager.
Mix and match your python and python modules and python file tree, and you are almost guaranteed to have a broken python install.
Python works just fine. It works it's own python way. I wish people would not use pip at all. If you have a machine with a package manager, the package manager keeps everything up to date and everything matches. Install python and python modules with your package manager.
I you install something with pip, your package manager does not know about it, and now your python file tree is all messed up.
What can you do if a python modules is not in your distros repos.
You build/install something with pip as user. And install it into a directory in /home. Use it from there, or make a virtual python env. Then you won't mess up your file tree, or your installation of python, and you won't be mad. You just have a piece of python software that doesn't not work.
Or, use you distros build tools to build/make a package for your distro, according to your distos docs, and install that package with your package manager.
Mix and match your python and python modules and python file tree, and you are almost guaranteed to have a broken python install.
Ever see a dog chasing his tail?
If I install python3 it is not sufficient to run Thonny - which is where this thread started -
tk tkinter are required and the general opinion is that this achieved using pip3.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.