pip更改镜像

pip更改镜像

pip install -i [镜像url] [包名称]
如:
从清华镜像安装scrapy包
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scrapy

常用源:

(1)阿里云 http://mirrors.aliyun.com/pypi/simple/
(2)豆瓣http://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学http://pypi.hustunique.com/

常用包:

一、Web框架:

Tornado,访问:http://www.tornadoweb.org/en/stable/

Flask,访问:http://flask.pocoo.org/

Web.py,访问:http://webpy.org/

django:https://www.djangoproject.com/

cherrypy:http://cherrypy.org/

jinjs:http://docs.jinkan.org/docs/jinja2/

二、GUI 图形界面

Tkinter :https://wiki.python.org/moin/TkInter/

wxPython:https://www.wxpython.org/

PyGTK:http://www.pygtk.org/

PyQt:https://sourceforge.net/projects/pyqt/

PySide:http://wiki.qt.io/Category:LanguageBindings::PySide

三、科学计算

numpy:http://www.numpy.org/

SciPy:https://www.scipy.org/

pandas: http://pandas.pydata.org/

blaze: http://blaze.readthedocs.io/en/latest/index.html

四、密码学

cryptography:https://pypi.python.org/pypi/cryptography/

hashids:http://www.oschina.net/p/hashids

Paramiko:http://www.paramiko.org/

Passlib:https://pythonhosted.org/passlib/

PyCrypto:https://pypi.python.org/pypi/pycrypto

PyNacl:http://pynacl.readthedocs.io/en/latest/

五、爬虫相关

scrapy:https://scrapy.org/

pyspider: https://github.com/binux/pyspider

portia:https://github.com/scrapinghub/portia

html2text:https://github.com/Alir3z4/html2text

BeautifulSoup:https://www.crummy.com/software/BeautifulSoup/

lxml:http://lxml.de/

selenium:http://docs.seleniumhq.org/

mechanize:https://pypi.python.org/pypi/mechanize

PyQuery:https://pypi.python.org/pypi/pyquery/

creepy:https://pypi.python.org/pypi/creepy

gevent,一个高并发的网络性能库,访问:http://www.gevent.org/

requests,最好用的http工具,访问:http://www.python-requests.org/

六、图像处理

bigmoyan:http://scikit-image.org/

Python Imaging Library(PIL):

http://www.pythonware.com/products/pil/

pillow: http://pillow.readthedocs.io/en/latest/

七、自然语言处理

nltk: http://www.nltk.org/

snownlp: https://github.com/isnowfy/snownlp

Pattern:https://github.com/clips/pattern

TextBlob:http://textblob.readthedocs.io/en/dev/

Polyglot:https://pypi.python.org/pypi/polyglot

jieba: https://github.com/fxsjy/jieba

八、数据库驱动

mysql-python: https://sourceforge.net/projects/mysql-python/

PyMySQL:https://github.com/PyMySQL/PyMySQL

PyMongo:https://docs.mongodb.com/ecosystem/drivers/python/

pymongo,MongoDB库,访问:https://pypi.python.org/pypi/pymongo/

redis,Redis库,访问:https://pypi.python.org/pypi/redis/

cxOracle,Oracle库,访问:https://pypi.python.org/pypi/cx_Oracle

SQLAlchemy,SQL工具包及对象关系映射(ORM)工具,访问:http://www.sqlalchemy.org/

peewee, SQL工具包及对象关系映射(ORM)工具,访问:https://pypi.python.org/pypi/peewee

torndb,Tornado原装DB,访问:https://github.com/bdarnell/torndb

九、Web

pycurl ———— URL处理工具

smtplib模块 ———— 发送电子邮件

猜你喜欢

转载自blog.csdn.net/m0_48004969/article/details/113848636