AttributeError: Module Pip has no attribute 'main'

后端 未结 16 1271
滥情空心
滥情空心 2020-11-29 00:53

I am trying to build the python api for an open source project called Zulip and I keep running into the same issue as indicated by the screenshot below.

I am running

相关标签:
16条回答
  • 2020-11-29 01:03

    I faced the same error while using pip on anaconda3 4.4.0 (python 3.6) on windows.

    I fixed the problem by the following command:

    easy_install pip==18.*  ### installing the latest version pip
    

    Or if lower version pip required, mention the same in the command.

    Or you can try installing the lower version and then upgrading the same to latest version as follow:

    easy_install pip==9.0.1
    
    easy_install --upgrade pip
    
    0 讨论(0)
  • 2020-11-29 01:05

    Not sure about Windows. But for mac users, use this:

    pip install --upgrade pip==9.0.3
    
    0 讨论(0)
  • 2020-11-29 01:06

    If python -m pip install --upgrade pip==9.0.3 doesn't work, and you're using Windows,

    1. Navigate to this directory and move the pip folders elsewhere.

    1. Close your IDE if you have it open.

    2. Press 'Repair' on Python 3.

    1. Your IDE should cease to detect pip packages and prompt you to install them. Install and keep the last stable pip version by blocking automatic updates.
    0 讨论(0)
  • 2020-11-29 01:06

    I fixed this problem upgrading to latest version

    sudo pip install --upgrade pip
    

    My version: pip 18.1 from /Library/Python/2.7/site-packages/pip (python 2.7)

    0 讨论(0)
  • 2020-11-29 01:08

    Try this command.

    python -m pip install --user pip==9.0.1
    
    0 讨论(0)
  • 2020-11-29 01:14

    Step 1 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py Step2 python get-pip.py

    0 讨论(0)
提交回复
热议问题