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

Python中一些包的基本用处和安装方法
pika可以用来连接rabbitmq
pip 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 directory
apt-get install libcurl4-openssl-dev
登录后复制众多python培训视频,尽在python学习网,欢迎在线学习!
以上就是Python中一些包的基本用处和安装方法的详细内容,更多请关注靠谱客其它相关文章!

最后
以上就是淡淡小丸子最近收集整理的关于Python中一些包的基本用处和安装方法的全部内容,更多相关Python中一些包内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复