That pycharm does not recognize the pymongo package that was installed in virtualenv

The presence of windows 10, pycharm version 4.5.4, python v3.4, django v1.8 I imported the django project that existed in the virtualenv directory into pycharm. So far, I have installed several packages through the same virtualenv (using pip), for example django-registration-redux, etc., all recognizable by pycharm. I installed pymongo in the same way as all other packages, but pycharm cannot recognize it, although the package exists in the packages of the virtualenv directory site and I can import it using the django manage.py shell.

I tried installing pymongo around the world, and so pycharm was able to recognize the package.

My question is: which pycharm does not recognize the pymongo package that was installed in virtualenv, and how can I fix it?

+4
source share
1 answer

Please check your virtual environment if the package is really installed:

$ pip freeze
pymongo==<version of installed pymongo>

if it is actually installed in your virtual environment, check the PyCharm settings. ( Setting up the project interpreter )

Settings => Project: => Project Interpreter

Your Project translator should be listed there and selected for the current project. If not, select it.
It will also list all packages installed in the virtual environment.

+4
source

Source: https://habr.com/ru/post/1613605/


All Articles