Home > Software design >  Why can't I use/import a ttk theme in Python
Why can't I use/import a ttk theme in Python

Time:08-11

So I was trying to use a ttk theme named "Sun Vally" (Link) But when I tried to use it, it gave an error of "ModuleNotFoundError: No module named 'sv_ttk'" even though I already have pip installed it.. I am still new to all this.. thanks in advance!

CodePudding user response:

For starters, try running the command pip list in your terminal. Does the module sv_ttk 1.0 appear in the list? If not, you may need to try running pip install sv-ttk again. This also assumes you aren't using a Python virtual environment, but I imagine you aren't.

You may also want to check if the module is properly installing into your site packages directory (the location of which is platform dependent). Are you on Mac OS or Windows?

Please update this question with a minimal example of what you've already tried so we can help you further.

CodePudding user response:

IF FIGURED IT OUT! I was using cmd to install pip but never realized I needed to use a different terminal... Turns out PyCharm has its own terminal and wont work if you used a different one...

  • Related