擅长:python、mysql、java
<p>在<code>pip install virtualenv</code>之后有同样的问题</p>
<p>当我检查python <code>ls -la /usr/local/bin/python</code>时,我发现它象征性地与<code>/Library/Frameworks/Python.framework/Versions/2.7/bin/python</code>相关联</p>
<p>当我在那个目录中cd时,我还发现virtualenv可执行文件和</p>
<p>修正了</p>
<ol>
<li><code>cd /Library/Frameworks/Python.framework/Versions/2.7/bin</code></li>
<li><code>ln virtualenv /usr/local/bin/virtualenv</code></li>
</ol>
<p>附带说明:我还碰巧在<code>/System/Library/Frameworks/Python.framework/Versions/2.7/bin</code>中安装了python</p>
<p>我相信那是OSX带来的</p>