CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

ModuleNotFoundError: No module named 'customtkinter'

Open portopen opened this issue 3 years ago • 3 comments

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 avatar Oct 23 '22 08:10 portopen

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.

portopen avatar Oct 24 '22 05:10 portopen

have you tried uninstalling the package?

kirankot12 avatar Jan 02 '24 23:01 kirankot12

I had the same problem. Just reinstall it again.

Anonymous6598 avatar Jan 03 '24 08:01 Anonymous6598