Python中文
首页
教程
问答
标签
搜索
登录
注册
如何将virtualenv添加到path
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正试图找出为什么找不到我的<code>virtualenv</code>和/或<code>virtualenv</code>包装器-使用<code>pip</code>使用<code>homebrew</code>安装。我想是因为它没有加入我的道路:</p> <pre><code>$ which virtualenv $ </code></pre> <p>以及:</p> <pre><code>$ virtualenv someDir $ -bash: virtualenv: command not found </code></pre> <p>我使用<code>homebrew</code>安装了pip,使用<code>pip</code>安装了<code>virtualenv</code>,没有问题。我试图重新安装<code>virtualenv</code>,但也没有成功。 如何知道要添加到<code>PATH</code>的路径?只是<code>virtualenv.py</code>似乎安装到的路径?似乎是:</p> <pre><code>/usr/local/lib/python2.7/site-packages/virtualenv.py </code></pre> <p>我还发现了<a href="http://youshoulddoityourself.blogspot.nl/2010/11/test.html" rel="noreferrer">this guide</a>,这表明:</p> <pre><code>$ ln -s ../Cellar/python/2.7/Frameworks/Python.framework/Versions/2.7/bin/virtualenv virtualenv </code></pre> <p>但是,它不帮助我运行<code>virtualenv</code>。我在MacOSX10.7.5(Lion)上。</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>在你的.bashrc中,你需要:</p> <pre><code>export WORKON_HOME=~/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何用强化学习更新函数逼近中的权重?
8 回答
如何用归并排序计算倒数?
7 回答
如何用当前数据拟合正弦波?
3 回答
如何用当前页面的值填充表单?
5 回答
如何用彩色地图在2dpython直方图中勾勒出箱子的轮廓?
10 回答
如何用彩色地图给等高线标签上色?
1 回答
如何用彩色打印到控制台?
8 回答
如何用彩色条绘制2d直方图,在Python中显示第三个变量的平均值?
1 回答
如何用彩色条绘制直方图,其中的颜色应与xaxis中的值一致?
8 回答
如何用彩色贴图填充曲线和原始边之间的区域?
5 回答
如何用循环分割数组并对其应用操作?
8 回答
如何用循环创建多个子集的数据帧
5 回答
如何用循环和递归实现求和
1 回答
如何用循环填充数组?
5 回答
如何用循环当前引用的位置更新变量?
8 回答
如何用循环求这个级数的和
3 回答
如何用循环解这个方程?
2 回答
如何用循环语句逐个读取数据帧中的数据?
10 回答
如何用循环除法?(Python)
5 回答
如何用感知一致性对HSV空间进行采样
2 回答