婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > pip install命令安裝擴展庫整理

pip install命令安裝擴展庫整理

熱門標(biāo)簽:遼寧智能外呼系統(tǒng)需要多少錢 舉辦過冬奧會的城市地圖標(biāo)注 400電話申請資格 阿里電話機器人對話 電銷機器人系統(tǒng)廠家鄭州 qt百度地圖標(biāo)注 地圖地圖標(biāo)注有嘆號 螳螂科技外呼系統(tǒng)怎么用 正安縣地圖標(biāo)注app

pip install命令用于安裝擴展庫,由于安裝擴展庫需要從國外網(wǎng)站下載,速度較慢,可以使用-i選項設(shè)置臨時使用國內(nèi)的鏡像網(wǎng)站。

命令格式:

pip install -i 鏡像地址 包名
例如:
pip install -i http://pypi.douban.com/simple/ django

常用國內(nèi)鏡像地址:

清華大學(xué):https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:https://mirrors.aliyun.com/pypi/simple/
豆瓣網(wǎng):https://pypi.douban.com/simple/
中國科技大學(xué):https://pypi.mirrors.ustc.edu.cn/simple/

使用pip install命令時,如果出現(xiàn)“WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com'.”安裝錯誤問題:


解決辦法:

(1)可以使用參數(shù)–trusted-host指定可信任的主機
pip install -i http://pypi.douban.com/simple django --trusted-host=pypi.douban.com


安裝成功后,可以用pip list查看包列表驗證一下。


(2)不用參數(shù)–trusted-host,把http換成https。
pip install -i https://pypi.douban.com/simple django

試一下,先刪除已安裝的django包
pip uninstall django



安裝成功。

到此這篇關(guān)于pip install命令安裝擴展庫整理的文章就介紹到這了,更多相關(guān)pip install命令內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

您可能感興趣的文章:
  • 用pip給python安裝matplotlib庫的詳細(xì)教程
  • pip 20.3 新版本發(fā)布!即將拋棄 Python 2.x(推薦)
  • python subprocess pipe 實時輸出日志的操作
  • Python更改pip鏡像源的方法示例
  • Python離線安裝各種庫及pip的方法

標(biāo)簽:信陽 合肥 阜新 隨州 淘寶好評回訪 興安盟 濟源 昭通

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《pip install命令安裝擴展庫整理》,本文關(guān)鍵詞  pip,install,命令,安裝,擴展,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《pip install命令安裝擴展庫整理》相關(guān)的同類信息!
  • 本頁收集關(guān)于pip install命令安裝擴展庫整理的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 迁安市| 乐亭县| 宁津县| 曲麻莱县| 祁连县| 明溪县| 九龙坡区| 古浪县| 沁源县| 安岳县| 大洼县| 南川市| 黄陵县| 资中县| 凌海市| 新竹县| 南投市| 麻城市| 霍山县| 宜丰县| 铜梁县| 马鞍山市| 涿州市| 新平| 松溪县| 建昌县| 松溪县| 乐都县| 镇坪县| 项城市| 宜宾县| 扶绥县| 黄石市| 枝江市| 南部县| 玉林市| 武定县| 林州市| 泊头市| 拉孜县| 新昌县|