擅长:python、mysql、java
<p>对于几乎所有的“简单”安装过程,我自己似乎都是例外。出于某种原因,这是一个与路径相关的问题:</p>
<p>我运行了<code>brew info python</code>,它输出了很多信息。在底部我发现了这个:</p>
<pre><code>Executable python scripts will be put in:
/usr/local/share/python
so you may want to put "/usr/local/share/python" in your PATH, too.
</code></pre>
<p>我在<code>/etc/launchd.conf</code>和<code>~/.bashrc</code>的路径中添加了这一点,然后你瞧:</p>
<pre><code>$ which virtualenv
</code></pre>
<p>告诉我:</p>
<pre><code>"/usr/local/share/python/virtualenv"
</code></pre>
<p>我还是不知道为什么在网上,任何地方都找不到指向正确方向的指针?是否应该将<code>pip install virtualenv</code>添加到路径本身?如果是,为什么不在我的系统上呢?为什么@bibhas明确告诉我这不是路径问题?</p>