TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.6k stars 1.09k forks source link

ModuleNotFoundError: No module named 'customtkinter' #547

Open portopen opened 2 years ago

portopen commented 2 years ago

Hello. I installed customtkinter with the command "pip3 install customtkinter" on a linux machine, and it installed succesfully. Now when I run a python script with "import customtkinter"using python shell 3.8 I get an error message "ModuleNotFoundError: No module named 'customtkinter'". Please help as I can't find anything online about this specific error. Thank you.

portopen commented 2 years ago

I found a solution: type pip3 show customtkinter into a terminal. This will display information containing where customtkinter is stored on your computer, e.g. Location: /home/username/.local/lib/python3.6/site-packages. Now add this location to your /etc/environment file. Open /etc/environment file with text editor in a terminal e.g. xed admin:///etc/environment. Now add a new line to the file e.g. PYTHONPATH="/home/username/.local/lib/python3.6/site-packages". That is all.

kirankot12 commented 10 months ago

have you tried uninstalling the package?

Anonymous6598 commented 10 months ago

I had the same problem. Just reinstall it again.