module can't be installed in Django virtual en

2019-08-27 23:12发布

问题:

I used pip install django-celeryand pip3 install django-celery in Pycharm.

After that I use import djcelery,but Pycharm reminds me no module named djcelery.

Then I used pip list I can see django-celery 3.2.2 in the list.

But when I went to virtual environment path myenv/lib/site-packages where I can see all the module or app that I have installed such as django-pure-pagination.But I can't find django-celery there.

Any friend has any idea, how to fix it?

回答1:

Seems like you've installed django-celery in another environment. Try to install it with PyCharm:

  • File > Settings > Project > Project Interpreter.