econchick / new-coder

New Coder tutorials
zlib License
597 stars 392 forks source link

Unable to find virtualenvwrapper.sh #39

Closed econchick closed 9 years ago

econchick commented 11 years ago

Add directions to find the script file after pip installs it.

Mostly issues with Ubuntu, and Mac w/ more than one Python version.

ryandagg commented 10 years ago

I have just started the tutorials and ran into this problem. Any idea on what to do about it?

I am running OS X 10.8 and have default Python install as well as 2.7 & 3.3.

EDIT: I figured it out. I couldn't find virtualenvwrapper.sh anywhere on my hard drive using procedures that I am used to (total terminal noob). But found this on stack overflow: http://stackoverflow.com/questions/12647266/where-is-virtualenvwrapper-sh-after-pip-install. I used '$ which virtualenvwrapper.sh' to find the file and then copied it into /usr/local/bin/

merwok commented 10 years ago

Aside: it’s misleading if virtualenvwrapper.sh is installed as a script (i.e. in a bin directory and with the execute bit), as it’s a file meant to be sourced. People are often confused by how virtualenv works, and virtualenvwrapper makes it more handy but more confusing. I’ve wanted to give a lightning talk or write something about that for some time; I should see if I can propose additional text to the relevant section in newcoder.

merwok commented 10 years ago

More info from duplicate ticket #83:

From @sullyj3: on arch, virtualenvwrapper.sh doesn't seem to be located in /usr/local/bin, but rather both /usr/bin and /bin

From me: It’s in yet another place on Debian and derived systems such as Ubuntu: http://askubuntu.com/questions/251378/where-is-virtualenvwrapper-sh

merwok commented 9 years ago

@econchick You closed this ticket as duplicate (of #83 I assume), but the other ticket was already closed as duplicate of this one.

econchick commented 9 years ago

I closed it because I added a fix for it.

On Jan 19, 2015, at 2:07 PM, Éric Araujo notifications@github.com wrote:

@econchick You closed this ticket as duplicate (of #83 I assume), but the other ticket was already closed as duplicate of this one.

— Reply to this email directly or view it on GitHub.

merwok commented 9 years ago

Ah! :‑)