python的包管理pip安装


装python的包可以自己下来直接装,也可以通过pip来通过网络安装。

http://www.pip-installer.org/en/latest/installing.html

上面的链接包含了详细的过程。我这里只记录几个简要的命令给自己以后查用。

1.安装

1 2 3 4 wget http://python-distribute.org/distribute_setup.py sudo python distribute_setup.py wget https://github.com/pypa/pip/raw/master/contrib/get-pip.py sudo python get-pip.py

2. 运行
可以通过pip help来查看帮助。简单用的话只要pip search和pip install就好了。

评论关闭