[英]installing python2.7 using virtualenv in ubuntu-lucid
I have python2.6
on ubuntu lucid
.I have installed virtualenv 1.8.2 for python2.6 .There is the virtualenv-1.8.2-py2.6.egg
in /usr/local/lib/python2.6/dist-packages
folder. 我已经
python2.6
对ubuntu lucid
。我已经安装的virtualenv 1.8.2 python2.6的。还有就是virtualenv-1.8.2-py2.6.egg
在/usr/local/lib/python2.6/dist-packages
夹。
I want to install python2.7 using virtualenv so I can test some of my code.How do I go about this?I tried 我想使用virtualenv安装python2.7,以便可以测试我的一些代码。
virtualenv venv27 --distribute --no-site-packages --python=python2.7
which gave an error like 这给出了一个错误
The executable python2.7 (from --python=python2.7) does not exist
Please tell me how to go about this? 请告诉我该怎么做? Do I have to upgrade my OS ?
我是否需要升级操作系统?
virtualenv
does not download or install Python (different from Ruby's rvm
). virtualenv
不会下载或安装Python(与Ruby的rvm
不同)。
When you specify what python you want virtualenv
to be based on ( --python=PYTHON_BIN
), that executable must exist. 当您指定要基于
virtualenv
python(-- --python=PYTHON_BIN
)时,该可执行文件必须存在。 virtualenv
uses that python installation to create its symlinks, shebangs, and everything. virtualenv
使用该python安装程序来创建其符号链接,shebang和所有内容。
As @Blender and @Dikei told you, you must have Python 2.7 before you create your virtualenv
. 正如@Blender和@Dikei告诉您的那样,在创建
virtualenv
之前,您必须具有Python 2.7。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.