Note that there are some explanatory texts on larger screens.

plurals
  1. POPython Virtualenv - No module named virtualenvwrapper.hook_loader
    primarykey
    data
    text
    <p>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:</p> <p>I downloaded python 2.7 and installed it:</p> <pre><code>http://www.python.org/ftp/python/2.7.3/python-2.7.3-macosx10.6.dmg </code></pre> <p>Then I run the command to setup a new virtualenv using python2.7:</p> <pre><code>mkvirtualenv --python=python2.7 mynewenv </code></pre> <p>My .bash_profile looks like the following:</p> <pre><code># needed for virtualenvwrapper export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv source /usr/local/bin/virtualenvwrapper.sh # Setting PATH for Python 2.7 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" export PATH </code></pre> <p>Now when I open the console I get the following error message. </p> <pre><code>ImportError: No module named virtualenvwrapper.hook_loader 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/local/bin/python and that PATH is set properly. </code></pre> <p>I also found in a different post that I should upgrade virtualenvwrapper. That did not help.</p> <pre><code>sudo pip install virtualenvwrapper --upgrade </code></pre> <p>Any help would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload