国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Python > 正文

Python中包的用法及安裝

2020-02-15 21:17:09
字體:
供稿:網(wǎng)友

本篇文章介紹了Python中一些常見的包的作用和安裝方法,希望對學習Python中的朋友有幫助!

Python中一些包的基本用處和安裝方法

pika可以用來連接RabbitMQ

pip install pika -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

requests是HTTP庫

Request支持HTTP連接保持和連接池,支持使用cookie保持會話,支持文件上傳,支持自動響應內(nèi)容的編碼,支持國際化的URL和POST數(shù)據(jù)自動編碼。

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分布式任務系統(tǒng)

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中一些包的基本用處和安裝方法的詳細內(nèi)容,如果大家有任何補充可以聯(lián)系武林站長站小編。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 辉南县| 北碚区| 龙井市| 喀喇沁旗| 黄骅市| 武安市| 合肥市| 安义县| 永新县| 泸西县| 隆德县| 秦安县| 无为县| 徐汇区| 昔阳县| 花莲市| 赤水市| 大同市| 沙雅县| 高阳县| 株洲县| 甘泉县| 新建县| 吉水县| 南汇区| 茌平县| 通江县| 溧水县| 台湾省| 贡山| 来宾市| 枝江市| 柘荣县| 孙吴县| 崇文区| 汶上县| 腾冲县| 宜良县| 子洲县| 盈江县| 佛冈县|