mac 下安裝pip


pip是常用的Python包管理工具,類似於Java的maven。用python的同學,都離不開pip。 
在新mac中想用home-brew安裝pip時,遇到了一些小問題:

bogon:~ wanglei$ brew install pip
Error: No available formula with the name "pip" Homebrew provides pip via: `brew install python`. However you will then have two Pythons installed on your Mac, so alternatively you can install pip via the instructions at: https://pip.readthedocs.org/en/stable/installing/#install-pip
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

由此可見,在home-brew中,pip的安裝是跟python一起的。

換種方式:

bogon:~ wanglei$ sudo easy_install pip
Password:
Searching for pip Reading https://pypi.python.org/simple/pip/ ...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5

稍等片刻,pip就安裝完畢。。。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM