Where is virtualenvwrapper.sh after pip install?

2019-01-21 01:30发布

I'm trying to setup virtualenvwrapper on OSX, and all the instructions and tutorials I've found tell me to add a source command to .profile, pointing towards virtualenvwrapper.sh. I've checked all the python and site-packages directories, and I can't find any virtualenvwrapper.sh. Is this something I need to download separately? Is pip not installing correctly?

This is the contents of /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenvwrapper:

hook_loader.py      hook_loader.pyc     project.py      project.pyc     user_scripts.py     user_scripts.pyc

As you can see, no virtualenvwrapper.sh. Where is it?

23条回答
相关推荐>>
2楼-- · 2019-01-21 01:52

I have the same problem. If you have older version of virtualenvwrapper, then pip wont work.

download src from http://pypi.python.org/pypi/virtualenvwrapper/3.6 and python setup.py install. Then the problem solved.

查看更多
Ridiculous、
3楼-- · 2019-01-21 01:52

For me it was in :

~/Library/Python/2.7/bin/virtualenvwrapper.sh

(With OS X, with a pip install --user installation)

查看更多
Juvenile、少年°
4楼-- · 2019-01-21 01:54
/usr/local/bin/virtualenvwrapper.sh
查看更多
成全新的幸福
5楼-- · 2019-01-21 01:54

I had the same issue in with the beagle bone black(debian).

Manually downloading the package and installing worked for me.

查看更多
不美不萌又怎样
6楼-- · 2019-01-21 01:57

For RPM-based distributions(like Fedora 19), after running the sudo pip install virtualenvwrapper command, you may find the file at:

/usr/bin/virtualenvwrapper.sh
查看更多
登录 后发表回答