ImportError: No module named pip

前端 未结 19 750
时光取名叫无心
时光取名叫无心 2020-12-04 06:56

OS: Mac OS X 10.7.5 Python Ver: 2.7.5

I have installed setuptools 1.0 with ez_setup.py from https://pypi.python.org/pypi/setuptools Then I download pip.1.4.1 pkg fr

19条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 07:25

    On some kind of linux like ubuntu, first, do apt-get update and then try installing the python-pip package. without apt-get update, you might get error such as

    E: Unable to locate package python-pip

    1.Update :

    sudo apt-get update

    2.Install the pip package

    For python2

    sudo apt-get install python-pip

    or

    For python3

    sudo apt-get install python3-pip

    And done!

提交回复
热议问题