擅长:python、mysql、java
<p>您确定<code>pip install</code>正在“失败”吗?在我看来,<code>pip</code>在您的计算机上安装模块的目录不在<code>PATH</code>环境变量中,所以当{<cd4>}安装时,您的计算机不知道在哪里可以找到它,而您只需输入<code>virtualenv</code>。在</p>
<p>找到<code>pip</code>在您的计算机上的安装位置,然后检查<code>pyenv</code>可执行文件所在的目录是否在<code>PATH</code>变量中(例如,通过<code>echo $PATH</code>来打印<code>PATH</code>变量)。如果不是,则需要通过将以下内容添加到<code>.bashrc</code>或{<cd13>}或等来更新<code>PATH</code>变量:</p>
<p><code>export PATH="PATH_TO_WHERE_PIP_PUTS_EXECUTABLES:$PATH"</code></p>