{"id":1140,"hash":"cb357b63907d9f8988fa22c7149c38dd8c2cf6bb32039edd34a1fe06e35dfb7f","pattern":"Virtualenv Command Not Found","full_message":"I couldn't get virtualenv to work despite various attempts. I installed virtualenv on MAC OS X using:\n\npip install virtualenv\n\nand have also added the PATH into my .bash_profile. Every time I try to run the virtualenv command, it returns:\n\n-bash: virtualenv: command not found\n\nEvery time I run pip install virtualenv, it returns:\n\nRequirement already satisfied (use --upgrade to upgrade): virtualenv in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages\n\nI understand that in mac, the virtualenv should be correctly installed in \n\n/usr/local/bin\n\nThe virtualenv is indeed installed in /usr/local/bin, but whenever I try to run the virtualenv command, the command is not found. I've also tried to run the virtualenv command in the directory /usr/local/bin, and it gives me the same result: \n\n-bash: virtualenv: command not found\n\nThese are the PATHs I added to my .bash_profile\n\nexport PATH=$PATH:/usr/local/bin\nexport PATH=$PATH:/usr/local/bin/python\nexport PATH=$PATH:/Library/Framework/Python.framework/Version/2.7/lib/site-packages\n\nAny workarounds for this? Why is this the case?","ecosystem":"pypi","package_name":"macos","package_version":null,"solution":"If you installed it with\n\npip install virtualenv\n\nYou need to run\n\nsudo /usr/bin/easy_install virtualenv\n\nwhich puts it in /usr/local/bin/.\n\nThe above directory by default should be in your PATH; otherwise, edit your .zshrc (or .bashrc) accordingly.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/31133050/virtualenv-command-not-found","votes":372,"created_at":"2026-04-19T04:52:25.787256+00:00","updated_at":"2026-04-19T04:52:25.787256+00:00"}