[英]Issues that could happen if importing site-packages from python2.6 to be used with python2.7?
[英]change django from python2.6 to python2.7
I am new Linux (Ubuntu) and Python,my Ubuntu come with python2.6.6 installed in it.I newly install python 2.7, and again installed django.
我想用python2.7配置django。 但现在它配置了python2.6。 我很困惑,因为一个新的 Linux 用户。我期待你的帮助,在此先感谢
使用 virtualenvwrapper。 安装:
pip install virtualenvwrapper
然后按照http://www.doughellmann.com/docs/virtualenvwrapper/中的描述修改 your.bashrc
要使用:
mkvirtualenv ENV_NAME --python=python2.7 --no-site-packages
workon ENV_NAME
pip install whatever packages you need
# or
pip install -r requirement_file.txt
每次你在你的环境中,python 是 2.7
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.