Skip to content Skip to sidebar Skip to footer

No Module Named ... In Pycharm (import Error)

I am using PyCharm on MAC to import some packages by import pymongo import bson However the error is ModuleNotFoundError: No module named 'pymongo' The packages are installed succ

Solution 1:

You're running Python in a virtual environment (venv), the packages you installed via pip cannot be found in this environment.

At the project interpreter, click the plus (+) sign at the bottom and add your packages there.

Project interpreter

Click the + at the bottom

Install package Search for, and install your package

Solution 2:

Delete the venv folder and then add the interpreter again from Settings>Project Interpreter. After that add the packages again(pip install package-name)

Post a Comment for "No Module Named ... In Pycharm (import Error)"