ImportError: No module named pip when trying to install packages

后端 未结 2 1913
孤独总比滥情好
孤独总比滥情好 2021-01-02 00:49

Have a fresh install of Ubuntu 13.10 with PyCharm and when setting up the python interpreter I selected \'install setuptools\', then \'install pip\'. Now if I try and do any

2条回答
  •  旧时难觅i
    2021-01-02 01:34

    I found that on Ubuntu, pip will not always set read and execute permissions for the modules it installs. My solution is to always run this shell script:

    sudo chmod -R a+rX /usr/lib/python*/dist-packages/
    sudo chmod -R a+rX /usr/local/lib/python*/dist-packages/
    sudo chmod a+rX /usr/bin/*
    sudo chmod a+rX /usr/local/bin/*
    

提交回复
热议问题