Python Virtualenv - No module named virtualenvwrapper.hook_loader
The issue was solved following the steps below:
#switch the /usr/bin/python link to point to current python link
cd /usr/bin
sudo mv python python.bak
sudo ln -s /Library/Frameworks/Python.framework/Versions/Current/bin/python python
Re-arrange the export command in order that it is placed before the virtualenv commands in my .bash_profile file:
PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
export PATH
# needed for virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
Re-Install setuptools, easy install and PIP. This is obviously needed in order that they work properly with the new python version:
sudo sh setuptools-0.6c11-py2.7.egg
sudo easy_install-2.7 pip
pip install virtualenv
ImportError: No module named 'virtualenvwrapper'
You do not have virtualenvwrapper
, you can install it using pip
or you can download the whole tar.zip file from pypi, and then run python setup.py
. The best method is to use pip
.
problems with python and virtualenvwrapper after updating: No module named virtualenvwrapper
You need to install them under python 2.7.9 by specifying the path to correct version of pip to be used
/usr/local/bin/pip install virtualenv virtualenvwrapper
otherwise, when running pip install
the sytem will use the default one (i.e. the one located at /usr/bin/pip
)
Related Topics
Multi Platform Portable Python
How to Cross Compile Python Interpreter for Windows Under Linux
Is There Something Wrong with This Python Code, Why Does It Run So Slow Compared to Ruby
How to Print the Full Numpy Array, Without Truncation
Accessing Pandas Column Using Squared Brackets VS Using a Dot (Like an Attribute)
Live Output from Subprocess Command
Matplotlib Different Size Subplots
Weird Timezone Issue with Pytz
Django Multivaluedictkeyerror Error, How to Deal with It
Problems Adding Path and Calling External Program from Python
Detect Specific Keypresses in Gui
Does Python Do Variable Interpolation Similar to "String #{Var}" in Ruby
How to Convert an Xml File to Nice Pandas Dataframe
Determine Whether Integer Is Between Two Other Integers
Best Way to Replace Multiple Characters in a String
Why Does Adding a Trailing Comma After a Variable Name Make It a Tuple