I have python 2.7 installed via mac ports on a mac. I installed virtualenv via macports (py27-virtualenv @1.6.1_0 (active). When issue the command: virtualenv demo_venv --no-site-packages, I get this error: -bash: virtualenv:command not found. It's not picking virtualenv up @ all, so do I need to symlink it to my python27 location?
As you noted, MacPorts offers several versions of pyXX-virtualenv packages. You need to tell MacPorts which of those versions you want to use by default:
port select --list virtualenv
port select --set virtualenv virtualenv27
which virtualenv
After this, you should be able to just type virtualenv
(assuming the MacPorts bin directory is in your path).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With