Home > OS >  phthon customtkinter liberery - how to install
phthon customtkinter liberery - how to install

Time:01-02

I need to install the customtkinter package for phthon.

i used the commnad pip install customtkinter to install the package . in pip list i can see the customtkinter package version.

in pycharm editor when i import the package i'm getting an error :

Traceback (most recent call last):
  File "C:\Users\tal.d\PycharmProjects\py1.py\venv\1.py", line 1, in <module>
    import customtkinter
ModuleNotFoundError: No module named 'customtkinter'

what can i do ?

i tryed to reaper the installation ( i checked all the boxe's )/

CodePudding user response:

Try removing and re-installing it:

pip uninstall customtkinter
pip install customtkinter

If the problem persists, ensure the package is installed in the correct path. To be able to use a package, it must be installed in your Python environment's specific location. Check your Python module search path by running the following command:

import sys
print(sys.path)

You will get a list of directories that are checked when Python tries to import a module. See if the directory where the 'customtkinter' package is installed is included in this list.

CodePudding user response:

For Python 3.

pip3 install customtkinter

Update existing installation:

pip3 install customtkinter --upgrade
  • Related