且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

virtualenv:在Mac上与Pip一起安装后找不到命令

更新时间:2023-11-17 08:54:16

我遇到了类似的问题.

您需要做的是将软件包安装位置的路径名添加到您的.profile文件中.看一下virtualenv软件包的安装位置-在我的例子中是/Users/ianloke/Library/Python/2.7/bin.然后将此路径名附加到PATH环境变量中.

What you need to do is to add the pathname of where the package was installed to your .profile file. Look to see where the virtualenv package was installed into - in my case it was /Users/ianloke/Library/Python/2.7/bin. Then append this pathname to the PATH environment variable.