简体   繁体   中英

How to fix ImportError: No module named main

I'm trying to upgrade pip on kali linux using

pip install --upgrade pip

when I hit enter I get a message saying

Traceback (most recent call last):
     File "/usr/local/bin/pip", line 5, in <module>
       from pip._internal.cli.main import main
ImportError: No module named main

Try out:

python2 -m pip install --user --upgrade pip

or

python3 -m pip install --user --upgrade pip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM