ImportError: No module named pip

前端 未结 19 684
时光取名叫无心
时光取名叫无心 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:50

    I know this thread is old, but I just solved the problem for myself on OS X differently than described here.

    Basically I reinstalled Python 2.7 through brew, and it comes with pip.

    Install Xcode if not already:

    xcode-select –install
    

    Install Brew as described here:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    Then install Python through Brew:

    brew install python
    

    And you're done. In my case I just needed to install pyserial.

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