0

I installed pip on msys2 (portabledevops) with python get-pip.py but I get this error

$ pip search youtube_dl
Traceback (most recent call last):
  File "/usr/bin/pip", line 7, in <module>
    from pip import main
ImportError: cannot import name 'main'

$ pip install --upgrade
Traceback (most recent call last):
  File "/usr/bin/pip", line 7, in <module>
    from pip import main
ImportError: cannot import name 'main'

How to remove pip completely and install again? I have python2 and python3 installed both

1 Answer 1

-1

Simple command: python -m pip uninstall pip

it will work because pip is also a module

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.