F
F
Fendero2022-03-20 09:19:39
Python
Fendero, 2022-03-20 09:19:39

Why does pyCharm not see the libraries when importing, even though the installation was successful?

I do not understand why pycharm does not see the libraries when importing, although their installation through the console is successful. Let's say I install the speech_recognition library via the terminal (using pip), the installation succeeds, but when I try to import the library, I get an error: "ModuleNotFoundError: No module named 'speech_recognition'". After I install this library through the package manager, now it is visible, but the pyAudio library is missing. When installing pyAudio through the console, the libraries are also not visible, and when installing pyAudio through the manager, an error appears related specifically to the package itself. And in the same way with all libraries, only the names change, so I can’t work with them, what should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2022-03-20
@Fendero

The pyCharm project must have a virtual environment configured that depends or does not depend on python and site-packages on the system:
https://www.jetbrains.com/help/pycharm/creating-vi...
Without configuration, the project environment may not see the installed packages in the system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question