{"id":1150,"hash":"72d2b55bc18b24282a6b8aabbc21b1b5b0bf283b88ede36e55518a9db5872288","pattern":"bash: mkvirtualenv: command not found","full_message":"After following the instructions on Doug Hellman's virtualenvwrapper post, I still could not fire up a test environment.\n\n[mpenning@tsunami ~]$ mkvirtualenv test\n-bash: mkvirtualenv: command not found\n[mpenning@tsunami ~]$\n\nIt 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.\n\nI'm running CentOS 6 and python 2.6.6, if this matters.\n\n# File: ~/.bash_profile\n# ...\n\nexport WORKON_HOME=\"/opt/virtual_env/\"\nsource \"/opt/virtual_env/bin/virtualenvwrapper_bashrc\"","ecosystem":"pypi","package_name":"bash","package_version":null,"solution":"Solution 1:\n\nFor some reason, virtualenvwrapper.sh installed in /usr/bin/virtualenvwrapper.sh, instead of under /usr/local/bin.\n\nThe following in my .bash_profile works...\n\nsource \"/usr/bin/virtualenvwrapper.sh\"\nexport WORKON_HOME=\"/opt/virtual_env/\"\n\nMy install seems to work fine without sourcing virtualenvwrapper_bashrc\n\nSolution 2:\n\nAlternatively 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`","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/13855463/bash-mkvirtualenv-command-not-found","votes":123,"created_at":"2026-04-19T04:52:25.792883+00:00","updated_at":"2026-04-19T04:52:25.792883+00:00"}