Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'customtkinter' #2622

Open
Birphon opened this issue Nov 4, 2024 Discussed in #636 · 2 comments
Open

ModuleNotFoundError: No module named 'customtkinter' #2622

Birphon opened this issue Nov 4, 2024 Discussed in #636 · 2 comments

Comments

@Birphon
Copy link

Birphon commented Nov 4, 2024

Discussed in #636

Originally posted by adambelbrik November 18, 2022
i need help, just installing the library using pip but am getting this error:
ModuleNotFoundError: No module named 'customtkinter'

Hi all, recently found CTK as I was looking for a way to bring an interface to my janky code and managed to land on CTK. went through and did a pip install and went through the demo and... ModuleNotFoundError: No module named 'customtkinter' popped up. Thought that was interesting and did another pip and even --upgrade just to make sure:

pycharm64_QgrPXOSfxB

as we can see, everything is satisfied. thought it might be that, for whatever reason my Python version changed on me (this has happened before) but nope

pycharm64_EZ9U63VhBX
4KPvDPEGFS

Unsure as to where I can go from there, does anyone have any recommendations on this? As we can see there is already a discussion for this with the answer seemingly to just download the repo into your project - something I am wanting to avoid if possible

@hacker-3342
Copy link

I think I have multiple ideas about why this might be caused:

  1. You installed this package on a virtual environment, but didn’t activate it
  2. You are using the wrong python version while executing your code

Those are the only ideas I have. Try them out and post your answers!

@Birphon
Copy link
Author

Birphon commented Nov 5, 2024

I think I have multiple ideas about why this might be caused:

  1. You installed this package on a virtual environment, but didn’t activate it
  2. You are using the wrong python version while executing your code

Those are the only ideas I have. Try them out and post your answers!

It does seem like I had a Venv setup and it was causing an issue, changed away from the Venv to just the Python313.exe, checked its packages and customtkinter is there.

As for using the wrong version of Python, I had already thought of this and mentioned it in the post - PyCharm is using Python 3.13 based on python --version and my Project is setup to use Python 3.13 (Python 3.13 BiS-Deadlock) though this name has now changed since I am no longer using a Venv, its just Python 3.13
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants