Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJon Hockley
3,781 PointsInstalling virtualenvwrapper on Mac OSX Yosemite
Hi guys,
I need a little bit of help trying to install virtualenvwrapper.
I have got virtualenv up and running following the course video. I have then tried to install virtualenvwrapper in the same way:
pip3 install --user virtualenvwrapper
I get this message back:
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in ./Library/Python/3.4/lib/python/site-packages Cleaning up...
I then continue to follow the installation guide for virtualenvwrapper and placed this in my .zshrc file:
export WORKON_HOME=~/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh
However, when I then either source my .zshrc file, or run a new terminal session, I get this message:
.zshrc:source:67: no such file or directory: /usr/local/bin/virtualenvwrapper.sh
I have tried navigating to that location and I cannot seem to find this file anywhere?
Many thanks in advance
2 Answers
Jon Hockley
3,781 PointsJust as I submitted this question I figured it out. I hope this helps someone:
I couldn't find the shell script file earlier because I was using the find command within the terminal. I thought I'd try:
which virutalenvwrapper.sh
This then gave me the location of where it had installed it given the commands I had issued in my question. I then replaced the line in my .zshrc file with:
source /Users/{insert_your_username_here}/Library/Python/3.4/bin/virtualenvwrapper.sh
and this allowed me to run virtualenvwrapper and use its commands.
Marius Wallin
11,464 PointsThanks. I also tried that and it worked. But is this a safe thing to do? I am a noob concerning terminal