python安装包的方法与图解_Python中一些包的基本用处和安装方法

本篇文章介绍了Python中一些常见的包的作用和安装方法,希望对学习Python中的朋友有帮助!

3f7a37d93c2de9a2bf62a41bea810de3.png

Python中一些包的基本用处和安装方法

pika可以用来连接rabbitmqpip install pika -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

requests是HTTP库

Request支持HTTP连接保持和连接池,支持使用cookie保持会话,支持文件上传,支持自动响应内容的编码,支持国际化的URL和POST数据自动编码。pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

SQLAlchemy是ORM框架pip install SQLAlchemy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

pymongo是连接mongodb的库pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

MySQL-python是连接mysql的库apt-get install python-mysqldb

gearman分布式任务系统pip install gearman -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

lxml是python的一个解析库,支持HTML和XML的解析pip install lxml -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

elasticsearch库,es的客户端库pip install elasticsearch -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

pycurl是curl库pip install pycurl -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

报错

__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directoryapt-get install libcurl4-openssl-dev

众多python培训视频,尽在python学习网,欢迎在线学习!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值