ImportError: No module named pip

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

    On Mac using brew is a better option as apt-get is not available. Command:

    brew install python
    

    In case you have both python2 & python3 installed on machine

    python2.7 -m ensurepip --default-pip
    

    simply should solve the issue.

    If instead you are missing pip from python 3 then simply change python2.7 to python3 in the command above.

提交回复
热议问题