The 'pip==7.1.0' distribution was not found and is required by the application

前端 未结 10 1095
故里飘歌
故里飘歌 2020-12-02 20:15

I have the latest version of pip 8.1.1 on my ubuntu 16. But I am not able to install any modules via pip as I get this error all the time.

File \"/usr/local/         


        
10条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 20:34

    I did not manage to get it to work by using easy_install pip or updating the pip configuration file /usr/local/bin/pip.

    Instead, I removed pip and installed the distribution required by the conf file:

    Uninstalling pip:

    $ sudo apt purge python-pip or $ sudo yum remove python-pip

    Reinstalling required distribution of pip (change the distribution accordingly):

    $ sudo easy_install pip==9.0.3

提交回复
热议问题