Polarmelone
Polarmelone

Reputation: 29

Why cant I import/use installed libraries in Python

I recently downloaded Python 3.10 because I used 3.9. At first, everything worked fine. Sadly, I can't use installed libraries nor use newly downloaded ones, since I deleted Python 3.9. What can I do about this problem?

VSCode gives me this Error message:

Traceback (most recent call last):

  File "e:\XXXX\XXXX.py", line 5, in <module>

    from playsound import playsound

ModuleNotFoundError: No module named 'playsound'

Upvotes: 0

Views: 1179

Answers (1)

Alasgar
Alasgar

Reputation: 142

You can check installed packages using this command:

pip freeze

or

pip list

Uninstall and install using command pip install <package-name>

Upvotes: 1

Related Questions