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 successfully and there is nothing wrong when running them in the command line
I also checked the Interpreter Configuration in Pycharm, fixed to Python 3.6(my only version of Python 3)
Also, when I use pip3 freeze
it indicates that these packages are successfully installed
How can I fix this problem?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…