virtualenv: command not found after installed with Pip on Mac [duplicate]

被刻印的时光 ゝ 提交于 2020-01-03 08:15:13

问题


I am trying to install VirtualEnv on my Mac. I have installed Python and Pip with brew. After running pip install virtualenv When I try to use it I am getting:

bash: "virtualenv: command not found"

I am unsure where virtualenv has been installed. My PATH environment variable contains:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/bin

I am using: Mac Os 10.7.5


回答1:


I experienced a similar issue.

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.



来源:https://stackoverflow.com/questions/15568718/virtualenv-command-not-found-after-installed-with-pip-on-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!