How to change Python version the customtkinter gets installed? #311
Replies: 5 comments 2 replies
-
Well, taking into account you're a beginner, I'd just say you're gonna have some headaches sometimes trying to solve things that feels really hard to solve. But that's life and you'll get through it. I'd recommend you to keep trying unninstalling python 3.6 and try to stick only to the versions you're really using. An easy work around that will probably work (for ctk at least) but I don't recommend sticking to it for too long (try to pip install it properly later) is:
This will work only for the project that is using it and isn't the best solution. |
Beta Was this translation helpful? Give feedback.
-
How do you installed customtkinter? So if you have two python versions installed, you should be able to start them either with |
Beta Was this translation helpful? Give feedback.
-
Go to python3.6/Lib/site_packages and then copy cutomtkinter. |
Beta Was this translation helpful? Give feedback.
-
If you are only interested right now to use github customtkinter version and you don't want to install using pip you can do this: import sys
sys.path.append("/location/to/the/library/called/CustomTkinter/") Just call this sample code inside the main before importing customtkinter and don't forget to change to the correct path |
Beta Was this translation helpful? Give feedback.
-
@floprete09, you might also want to look at virtual environments. Python lets you sandbox your projects. Things can get messy and confusing) if you don't use them. You can produce them from the command line or a good IDE should allow for this. |
Beta Was this translation helpful? Give feedback.
-
I'm new to Python and tried to install customtkinter but when I installed it it was installed in my python 3.6 instead of my python 3.9 that I have been using. I can switch to 3.6 on VsCode, but my other things don't work then that I have installed for Python3.9. I would like to just get rid of Python3.6 but not sure how but that's another issue. My system is running Linux Mint. I tried to simply locate the folder for customtkinter and move it to the appropriate folder for Python3.9, and I found the customtkinter folder for python3.6 but I can't find the proper directory to put it in python3.9. I I tried one that I found, but it didn't work. Vscode still errors on me when I run my program. Python3.9 is not installed in the same path as 3.6 and python2.7 on my computer and idk where it is or if copying and pasting the customtkinter folder will even work. Anyway, I just want to install customtkinter in the python3.9 folder. How do I do that?
Beta Was this translation helpful? Give feedback.
All reactions