I need someone to help about this Problem " there was a problem running the initialization hooks."



To solve this problem try reinstalling pip and then reinstalling virtualenvwrapper

$ sudo easy_install pip
$ sudo pip install --upgrade virtualenvwrapper

You are only required to configure the path accurately. After that run the following commands in the terminal:

which python





In this case, as you can look that the variable $VIRTUALENVWRAPPER_PYTHON is pointing towards the wrong python path. Hence we require to reset the path of variable $VIRTUALENVWRAPPER_PYTHON.

export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python

Then run the following the command:

source /usr/local/bin/ 
$ sudo easy_install pip

$ sudo pip install --upgrade virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source /usr/local/bin/

Also, you can attempt to edit .bash_profile file:

# Home brew
export PATH=/usr/local/bin:$PATH

# virtualenvwrapper 
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source /usr/local/bin/

Now, this time you can re-arrange the export order so that the python path is placed prior the virtualenv commands in your .bash_profile file.

python path

export PATH=/usr/local/bin:$PATH

# needed for virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/


brew install python --with-brewed-openssl
# Open a new terminal tab now (to access /usr/local/bin/python)
pip install virtualenv
pip install virtualenvwrapper

Hopefully, this will solve your problem.

More Posts

Pandas cannot reindex from a duplicate axis Alecxe01 - Nov 7
Pip there was a problem confirming the ssl certificate amna - May 19
Typeerror: super(type, obj): obj must be an instance or subtype of type Alecxe01 - Nov 12
Windows media player cannot play the file because there is a problem with your sound device Tegra Balonga - May 3
New transaction is not allowed because there are other threads running in the session. Alecxe01 - Oct 27
Content type 'application/x-www-form-urlencoded;charset=utf-8' not supported Alecxe01 - Nov 12
Typeerror: object of type 'nonetype' has no len() Naymul01 - Oct 29
npm err! this is probably not a problem with npm. there is likely additional logging output above. Alecxe01 - Nov 4
There are 4 bytes in an ipv4 address. what is the highest decimal value you can have for one byte? Farkhanda Athar - Apr 11, 2020
Is there a foreach statement in Python? yaroslavkushnir - Oct 6