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

前端 未结 10 1062
故里飘歌
故里飘歌 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:45

    After a large upgrade in Mint -> 19, my system was a bit weird and I came across this problem too.

    I checked the answer from @amangpt777 that may be the one to try

    /usr/local/bin/pip # -> actually had a shebang calling python3
    
    ~/.local/bin/pip* # files were duplicated with the "sudo installed" /usr/local/bin/pip*
    

    Running

    sudo python get-pip.py # with script https://bootstrap.pypa.io/get-pip.py
    sudo -H pip install setuptools
    

    seem to solve the problem. I understand this as a problem with the root / user installation of python. Not sure if ananconda3 is also messing around with those scrips.

提交回复
热议问题