I have virtualenv and virtualenvwrapper installed, but when trying to setup an application, I enter mkvirtualenv --no-site-packages
I get the following error:
-bash: mkvirtualenv: command not found
I am not sure how to troubleshoot this. As a beginner, I'd be grateful for any help.
To install, run one of the following: # using pip pip install virtualenvwrapper-win # using easy_install easy_install virtualenvwrapper-win # from source git clone git://github.com/davidmarble/virtualenvwrapper-win.git cd virtualenvwrapper-win python setup.py install # or pip install .
it's a linux command which is used to create virtual env. mkvirtualenv foo creates a new virtual env at your home directory. You may switch to that env by running workon foo on your linux terminal.
That installation installs virtualenvwrapper in the /usr/local/bin directory.
You need to enable virtualenvwrapper
as described in its docs.
Shell Startup File
Add three lines to your shell startup file (
.bashrc
,.profile
, etc.) to set the location where the virtual environments should live, the location of your development project directories, and the location of the script installed with this package:
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
After editing it, reload the startup file (e.g., run
source ~/.bashrc
).
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