I have problem with Django 1.8.2 on virtualenv with Python 2.7
我在使用Python 2.7的virtualenv上使用Django 1.8.2时遇到问题
i installed requests with pip install requests
successfully. I'm able to start python
and import requests
- it is working.
我成功安装了pip安装请求的请求。我能够启动python并导入请求 - 它正在工作。
But when i start my django app in venv with uwsgi - when i enter website i see error:
但是当我用uwsgi在venv中启动我的django应用程序时 - 当我进入网站时,我看到错误:
ImportError at /pobieraniebot/
No module named requests
When Django app is working in the same virtual environment as i run python.
当Django应用程序在与运行python相同的虚拟环境中工作时。
1 个解决方案
#1
1
Make sure you executed pip install requests
in your virtual env.
确保在虚拟环境中执行了pip安装请求。
#1
1
Make sure you executed pip install requests
in your virtual env.
确保在虚拟环境中执行了pip安装请求。