问题
I used pip install django-celery
and 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.
来源:https://stackoverflow.com/questions/50993171/module-cant-be-installed-in-django-virtual-environment