virtualenvwrapper

Why does virtualenv inherit $PYTHONPATH from my shell?

Why does virtualenv inherit $PYTHONPATH from my shell? Question: So I’m migrating all my tools from python2 to python3.4 on an Ubuntu 14.04 machine. So far I’ve done the following: aliased python to python3 in my zshrc for just my user installed pip3 on the system itself (but I’ll just be using virtualenvs for everything …

Total answers: 3

Get virtualenv's bin folder path from script

Get virtualenv's bin folder path from script Question: I’m using virtualenvwrapper with a django project that has a management task that automatically writes some config files, so the user just has to ./manage.py generate_configuration > much_nice.conf And then move the file elsewhere. One of the generated config files is a task for supervisord that launches …

Total answers: 4

Terminal issue with virtualenvwrapper after Mavericks Upgrade

Terminal issue with virtualenvwrapper after Mavericks Upgrade Question: After upgrading to OSX Mavericks, I am getting this message in the terminal: /usr/bin/python: No module named virtualenvwrapper virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is …

Total answers: 9

virtualenvwrapper and Python 3

virtualenvwrapper and Python 3 Question: I installed python 3.3.1 on ubuntu lucid and successfully created a virtualenv as below virtualenv envpy331 –python=/usr/local/bin/python3.3 this created a folder envpy331 on my home dir. I also have virtualenvwrapper installed.But in the docs only 2.4-2.7 versions of python are supported..Has anyone tried to organize the python3 virtualenv ? If …

Total answers: 9

bash: mkvirtualenv: command not found

bash: mkvirtualenv: command not found Question: 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 …

Total answers: 14

Why can't I get `pip install lxml` to work within a virtualenv?

Why can't I get `pip install lxml` to work within a virtualenv? Question: Note: I’m using virtualenvwrapper. Before activating the virtual environment: $ pip install lxml Requirement already satisfied (use –upgrade to upgrade): lxml in /usr/lib/python2.7/dist-packages Cleaning up… After activating the virtual environment: (test-env)$ pip install lxml force/build/lxml/src/lxml/includes/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or …

Total answers: 4

Where is virtualenvwrapper.sh after pip install?

Where is virtualenvwrapper.sh after pip install? Question: I’m trying to setup virtualenvwrapper on OSX, and all the instructions and tutorials I’ve found tell me to add a source command to .profile, pointing towards virtualenvwrapper.sh. I’ve checked all the python and site-packages directories, and I can’t find any virtualenvwrapper.sh. Is this something I need to download …

Total answers: 24

Where should virtualenvs be created?

Where should virtualenvs be created? Question: I’m confused as to where I should put my virtualenvs. With my first django project, I created the project with the command django-admin.py startproject djangoproject I then cd’d into the djangoproject directory and ran the command virtualenv env which created the virtual environment directory at the same level as …

Total answers: 6

Python Virtualenv – No module named virtualenvwrapper.hook_loader

Python Virtualenv – No module named virtualenvwrapper.hook_loader Question: I’m running Mac OS 10.6.8. and wanted to install in addition to python 2.6 also python 2.7 and use python 2.7 in a new virtualenv. I executed the following steps: I downloaded python 2.7 and installed it: http://www.python.org/ftp/python/2.7.3/python-2.7.3-macosx10.6.dmg Then I run the command to setup a new …

Total answers: 16

How do I change the default virtualenv prompt?

How do I change the default virtualenv prompt? Question: How do you change the default Virtualenvwrapper prompt? By default, working on a particular virtual environment with a command like workon <_name_of_env_> prepends the name of the virtualenv to your prompt. This may work poorly if you’re not using a default command prompt. Asked By: kevin …

Total answers: 5