模块无法安装在Django虚拟环境中 [英] module can't be installed in Django virtual environment
问题描述
我在Pycharm中使用了 pip安装django-celery
和 pip3安装django-celery
。
I used pip install django-celery
and pip3 install django-celery
in Pycharm.
此后,我使用 import djcelery
,但是Pycharm提醒我没有名为djcelery的模块。
After that I use import djcelery
,but Pycharm reminds me no module named djcelery.
然后我使用了点列表
我可以在列表中看到 django-celery 3.2.2 。
Then I used pip list
I can see django-celery 3.2.2 in the list.
但是当我转到虚拟环境路径 myenv / lib / site-packages
时,我可以看到所有模块或我已安装的django-pure-pagination之类的应用程序。但是在那儿找不到django-celery。
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?
推荐答案
似乎您在其他环境中安装了 django-celery
。尝试使用 PyCharm 安装它:
Seems like you've installed django-celery
in another environment. Try to install it with PyCharm:
- 文件>设置>项目>项目解释器。
- File > Settings > Project > Project Interpreter.
这篇关于模块无法安装在Django虚拟环境中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!