本篇文章給大家分享的是有關(guān)Python中包的用法及安裝是怎么樣的,小編覺得挺實(shí)用的,因此分享給大家學(xué)習(xí),希望大家閱讀完這篇文章后可以有所收獲,話不多說,跟著小編一起來看看吧。
介紹了Python中一些常見的包的作用和安裝方法,希望對學(xué)習(xí)Python中的朋友有幫助!
Python中一些包的基本用處和安裝方法
pika可以用來連接RabbitMQ
pip install pika -i /tupian/20230522/ --trusted-host pypi.douban.com
requests是HTTP庫
Request支持HTTP連接保持和連接池,支持使用cookie保持會話,支持文件上傳,支持自動響應(yīng)內(nèi)容的編碼,支持國際化的URL和POST數(shù)據(jù)自動編碼。
pip install requests -i /tupian/20230522/ --trusted-host pypi.douban.com
SQLAlchemy是ORM框架
pip install SQLAlchemy -i /tupian/20230522/ --trusted-host pypi.douban.com
pymongo是連接mongodb的庫
pip install pymongo -i /tupian/20230522/ --trusted-host pypi.douban.com
MySQL-python是連接mysql的庫
apt-get install python-mysqldb
gearman分布式任務(wù)系統(tǒng)
pip install gearman -i /tupian/20230522/ --trusted-host pypi.douban.com
lxml是python的一個(gè)解析庫,支持HTML和XML的解析
pip install lxml -i /tupian/20230522/ --trusted-host pypi.douban.com
elasticsearch庫,es的客戶端庫
pip install elasticsearch -i /tupian/20230522/ --trusted-host pypi.douban.com
pycurl是curl庫
pip install pycurl -i /tupian/20230522/ --trusted-host pypi.douban.com
報(bào)錯(cuò)
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
apt-get install libcurl4-openssl-dev
以上就是Python中包的用法及安裝是怎么樣的,小編相信有部分知識點(diǎn)可能是我們?nèi)粘9ぷ鲿姷交蛴玫降?。希望你能通過這篇文章學(xué)到更多知識。更多詳情敬請關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
名稱欄目:Python中包的用法及安裝是怎么樣的-創(chuàng)新互聯(lián)
分享URL:http://sd-ha.com/article14/cchdde.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、商城網(wǎng)站、網(wǎng)頁設(shè)計(jì)公司、App開發(fā)、網(wǎng)站策劃、建站公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容