pip是常用的Python包管理工具,類(lèi)似于Java的maven聘芜。用python的同學(xué),都離不開(kāi)pip缝龄。 在新mac中想用home-brew安裝pip時(shí)汰现,遇到了一些小問(wèn)題:
bogon:~ yj$ 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
由此可見(jiàn),在home-brew中叔壤,pip的安裝是跟python一起的瞎饲。
換種方式:
bogon:~ yj$ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
...
稍等片刻,pip就安裝完畢炼绘。嗅战。。
安裝完成之后就可以安裝工具了:
pip install --upgrade lxml --user
pip install --upgrade requests --user