ImportError: No module named pip when trying to install packages

后端 未结 2 1898
孤独总比滥情好
孤独总比滥情好 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条回答
  • 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/*
    
    0 讨论(0)
  • 2021-01-02 01:40

    Download the file get-pip.py from the pip-website (http://pip.readthedocs.org/en/stable/installing/). Open the terminal, cd in to the folder where you placed get-pip.py and run:

    sudo python3 get-pip.py

    Open pycharm and install desired package...

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