PyCharm: no module named * solution

 

1. The module is successfully installed, but cannot be imported

After installing the module pyppeteer today, the import of pycharm failed. It can be clearly seen from the Lib of python that it has been successfully installed

2. Add the current python environment, do not use the environment of the default project

file>settings>project:(your project)>project interpreter

You can see that a virtual interpreter of the project is used by default

 3. Add your own installed python interpreter

show All

Add python interpreter>Vir.. Envir...>Existing envir...

 

 

4. Switch to your newly configured interpreter, and you can see the newly installed modules.

Related Posts