教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 Python中一些包的基本用处和安装方法

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

发布时间:2020-10-04   编辑:jiaochengji.com
教程集为您提供Python中一些包的基本用处和安装方法等资源,欢迎您收藏本站,我们将为您提供最新的Python中一些包的基本用处和安装方法资源
本篇文章介绍了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中一些包的基本用处和安装方法
    Python3爬虫入门之Python3的安装
    python如何安装git
    怎么安装指定版本的python包
    python library怎么安装
    python库在哪里下载?怎么安装?
    Django中如何使用Mysql数据库
    python安装了怎么用
    安装python后如何打开

    [关闭]
    ~ ~