liunx安装pip

安装pip之前要先安装Anaconda。

1、下载:

# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate

2、解压/安装

# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install

3、pip安装包

# pip install SomePackage

4、下载爬虫所需要的各种库(pip3或者pip)

pip3 install requests selenium beautifulsoup4 pyquery pymysql pymongo redis flask django jupyter

=====================================================================

 

pip检查那些包需要更新

# pip list --outdated

 

pip升级包

# pip install --upgrade SomePackage

pip卸载包

pip uninstall SomePackage

具体的看这里:

http://www.ttlsa.com/python/how-to-install-and-use-pip-ttlsa/

 

posted @ 2017-10-14 14:08  随意随性  阅读(171)  评论(0编辑  收藏  举报