Python Virtual Environment(virtualenv)文件路径逻辑/错误 [英] Python Virtual Environment (virtualenv) file path logic/ errors
问题描述
尝试建立虚拟环境并尝试以下命令:
virtualenv --python = / var / bin / python --clear --no-site-packages --unzip- setuptools --setuptools〜/ virtualenvs / project_name_here
运行上述命令会产生以下错误:
可执行文件/ var / bin / python(from --python = / var / bin / python)不存在
/ pre>
如果我使用'--python = / var / bin / python'路径播放,那么我会收到以下错误:
virtualenv:error:没有这样的选项: - / var / bin / python
我知道我已经将virtualenv本身作为一个gem /程序,因为在命令行中输入virtualenv可以给出帮助菜单。
$ b $我想知道是否与命令的路径部分有关:- python = / var / bin / python
我应该替换'--python =用实际的文件路径?
var / bin / python甚至位于哪里?
这个特定的部分对我来说是一个谜。
谢谢!
解决方案尝试使用这个路径:
/ usr / bin / python
或找到真正的路径与哪个python
Trying to establish a virtual environment and tried the following command:
virtualenv --python=/var/bin/python --clear --no-site-packages --unzip-setuptools --setuptools ~/virtualenvs/project_name_here
Running the above command generates the following error:
The executable /var/bin/python (from --python=/var/bin/python) does not exist
If I play around with the '--python=/var/bin/python' path, then I get the following error:
virtualenv: error: no such option: --/var/bin/python
I know I have virtualenv itself as a gem/program, because typing virtualenv by itself into the command line gives the help menu.
I am wondering if it's something to do with the path part of the command:
--python=/var/bin/python
Should I be replacing the '--python=' with an actual file path? Where is the var/bin/python even located? That particular portion is a mystery to me.
Thanks!
解决方案Try using this path instead:
/usr/bin/python
or find out the real path withwhich python
这篇关于Python Virtual Environment(virtualenv)文件路径逻辑/错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文