How do I setup a startup command for terminal in OSX?

180 views
Skip to first unread message

Zak

unread,
Sep 28, 2012, 4:21:32 PM9/28/12
to virtuale...@googlegroups.com
I'm trying to follow this instruction: 

You will want to add the command to source /usr/local/bin/virtualenvwrapper.sh to your shell startup file, changing the path to virtualenvwrapper.sh depending on where it was installed by pip.

 But even after installing virtualenvwrapper with pip, I have no virtualenvwrapper.sh. How do I set a startup script for terminal and what command should I use?

Doug Hellmann

unread,
Sep 28, 2012, 5:46:54 PM9/28/12
to virtuale...@googlegroups.com
pip installs things under the same prefix where Python was installed. On my OS X system, that's in /Library/Frameworks/Python.framework/Versions/2.7/.

Where is pip running, which version of Python is it using, and where did it write the files when you installed virtualenvwrapper?

Doug

peder

unread,
Dec 2, 2012, 10:24:32 PM12/2/12
to virtuale...@googlegroups.com
I don't think virtualenvwrapper.sh works as it should on Mountain Lion, 

peder

unread,
Dec 2, 2012, 10:35:10 PM12/2/12
to virtuale...@googlegroups.com

TJ Marbois

unread,
Dec 23, 2012, 5:10:25 PM12/23/12
to virtuale...@googlegroups.com
having the same problem as above... 

10.8.2
Brew python
pip install virtalenvwrapper 

trying to make it work - bash can't find virtualenvwrapper

and no file at all called virtualenvwrapper.sh on the machine after using pip to install it.... where did it go? 

source /usr/local/bin/virtualenvwrapper.sh


On Friday, September 28, 2012 5:46:57 PM UTC-4, Doug Hellmann wrote:

Doug Hellmann

unread,
Dec 24, 2012, 12:16:37 PM12/24/12
to virtuale...@googlegroups.com
Where is pip installed?

Doug

TJ Marbois

unread,
Dec 24, 2012, 12:36:24 PM12/24/12
to virtuale...@googlegroups.com
hi - ( Happy Holidays! )

 macbook$ which pip
/usr/local/share/python/pip

I got past this issue by reinstalling everything starting from easy_install -- but then I had other issues... ( heroku toolbelt screwed up ) and when I reinstalled that I lost virtualenv again.  

Any ideas?

Doug Hellmann

unread,
Dec 24, 2012, 12:46:42 PM12/24/12
to virtuale...@googlegroups.com
Depending on how you reinstalled, maybe you need to reinstall virtualenv? I don't use heroku, so I'm not sure how those tools work or what would have been involved in cleaning up to reinstall.

In general, the sorts of problems described in this thread are caused by not understanding where things are being installed, which is often caused by having more than one version of a tool like pip installed (especially for different versions of python).

Doug

TJ Marbois

unread,
Dec 24, 2012, 12:54:47 PM12/24/12
to virtuale...@googlegroups.com
Doug

Thanks - Im reinstalling virtualenvwrapper

macbook$ pip install virtualenvwrapper
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): virtualenv-clone in /usr/local/lib/python2.7/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): stevedore in /usr/local/lib/python2.7/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/local/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg (from stevedore->virtualenvwrapper)
Cleaning up...

its already there from previous - so something else got changed in between.

when I which virtualenvwrapper - I get no reply.

and Im back to square one again of not knowing where the virtualenvwrapper.sh is supposed to be sourced from?

$ export WORKON_HOME=~/Envs
$ mkdir -p $WORKON_HOME
$ source /usr/local/bin/virtualenvwrapper.sh
I get this:

macbook$ export WORKON_HOME=~/Envs
macbook$ source /usr/local/bin/virtualenvwrapper.sh
-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory

TJ Marbois

unread,
Dec 24, 2012, 1:01:42 PM12/24/12
to virtuale...@googlegroups.com
I dont see virtualenvwrapper.sh 

macBook-Pro:site-packages macbook$ ls
clonevirtualenv.py setuptools-0.6c11-py2.7.egg-info stevedore-0.7.2-py2.7.egg-info virtualenv_support
clonevirtualenv.pyc setuptools.pth virtualenv-1.8.4-py2.7.egg-info virtualenvwrapper
distribute-0.6.32-py2.7.egg sitecustomize.py virtualenv.py virtualenvwrapper-3.6-py2.7-nspkg.pth
easy-install.pth sitecustomize.pyc virtualenv.pyc virtualenvwrapper-3.6-py2.7.egg-info
pip-1.2.1-py2.7.egg stevedore virtualenv_clone-0.2.4-py2.7.egg-info
macBook-Pro:site-packages macbook$ cd virtualenvwrapper
macBook-Pro:virtualenvwrapper macbook$ ls
hook_loader.py hook_loader.pyc project.py project.pyc user_scripts.py user_scripts.pyc
macBook-Pro:virtualenvwrapper macbook$ pwd
/usr/local/lib/python2.7/site-packages/virtualenvwrapper
macBook-Pro:virtualenvwrapper macbook$ 



On Monday, December 24, 2012 12:46:42 PM UTC-5, Doug Hellmann wrote:
Reply all
Reply to author
Forward
0 new messages