Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while finding module specification for 'virtualenvwrapper.hook_loader' when I downgrade python3.7 to python3.6

Tags:

python

I have been stuck with this problem since last night trying to solve and have tried all recommended solutions here and still didn't work. I am hoping to find a positive suggestion if there is actually any possible method I may not have tried yet. I started experiencing problems with my virtaulenv and virtualwrapper after downgrading my python version from 3.7 to 3.6.

"/usr/local/opt/python/bin/python3.6: Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No module named 'virtualenvwrapper') virtualenvwrapper.sh: There was a problem running the initialization hooks"

when I tried 'sudo pip install virtualenv virtualenvwrapper' and 'sudo pip3 install virtualenv virtualenvwrapper' I received "Requirements already satisfied".

I also tried "brew unlink python && brew link python" to link them with python3.6 but still it didn't work. Please I will appreciate your help and positiive suggestions.

Thanks

like image 445
Godspower Avatar asked Aug 16 '26 05:08

Godspower


1 Answers

I found that I was able to navigate through this using

sudo pip3 install virtualenv virtualenvwrapper

Then I created another virtual environment using

sudo virtualenv-p python3

source >target folder>/bin/activate

This worked for me

like image 200
Godspower Avatar answered Aug 17 '26 20:08

Godspower



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!