Tuesday 4 August 2020

1. ModuleNotFoundError: No module named 'pip._internal.cli.main'

When changing my IDE halfway through a project I got this error message when trying to 'runserver' in Terminal.

'ModuleNotFoundError: No module named 'wagtailmenus''

So I tried 
'pip install wagtailmenus' 

And received the following message. 

'
ModuleNotFoundError: No module named 'pip._internal.cli.main''


These are the commands I used to sort this out. 

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py --force-reinstall pip uninstall pip python3 get-pip.py
pip install wagtailmenus
Now I can

python3 manage.py runserver

And my site is now working locally .

No comments: