pypibash95% confidence\u2191 123

bash: mkvirtualenv: command not found

Full error message
After following the instructions on Doug Hellman's virtualenvwrapper post, I still could not fire up a test environment.

[mpenning@tsunami ~]$ mkvirtualenv test
-bash: mkvirtualenv: command not found
[mpenning@tsunami ~]$

It should be noted that I'm using WORKON_HOME that is not in my $HOME.  I tried looking for /usr/local/bin/virtualenvwrapper.sh as shown in the virtualenvwrapper installation docs, but it does not exist.

I'm running CentOS 6 and python 2.6.6, if this matters.

# File: ~/.bash_profile
# ...

export WORKON_HOME="/opt/virtual_env/"
source "/opt/virtual_env/bin/virtualenvwrapper_bashrc"

Solution 1: For some reason, virtualenvwrapper.sh installed in /usr/bin/virtualenvwrapper.sh, instead of under /usr/local/bin. The following in my .bash_profile works... source "/usr/bin/virtualenvwrapper.sh" export WORKON_HOME="/opt/virtual_env/" My install seems to work fine without sourcing virtualenvwrapper_bashrc Solution 2: Alternatively as mentioned below, you could leverage the chance that virtualenvwrapper.sh is already in your shell's PATH and just issue a source `which virtualenvwrapper.sh`

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/72d2b55bc18b24282a6b8aabbc21b1b5b0bf283b88ede36e55518a9db5872288
hash \u00b7 72d2b55bc18b24282a6b8aabbc21b1b5b0bf283b88ede36e55518a9db5872288
bash: mkvirtualenv: command not found — DepScope fix | DepScope