国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

windows: pip install 報錯SSLError Can‘t connect to HTTPS URL because the SSL module is not available

這篇具有很好參考價值的文章主要介紹了windows: pip install 報錯SSLError Can‘t connect to HTTPS URL because the SSL module is not available。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

系統(tǒng)環(huán)境

  • windows
  • anaconda
  • pip清華源

錯誤描述

通過pip install 安裝不成功,會報錯(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

錯誤詳情如下:

ghua.edu.cn', port=443): Max retries exceeded with url: /simple/opencv-python/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")
) - skipping
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)                                                                     
ERROR: No matching distribution found for opencv-python                                                                                                                
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.                                                     
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.c
.cn', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping    ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.c
n', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping        
WARNING: There was an error checking the latest version of pip.

具體是什么錯誤什么原因?qū)е?,不去深究了?;蛟S是源本身有問題?下面直接提供解決方法,通過更換源解決了該錯誤

解決方法

臨時源測試

pip install opencv-python -i http://pypi.douban.com/simple
# 依然會報以下錯誤,提示 is not a trusted
Looking in indexes: http://pypi.douban.com/simple
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 H
TTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host pypi.douban.com'.
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python
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 H
TTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host pypi.douban.com'.
WARNING: There was an error checking the latest version of pip.

加上--trusted-host,命令如下不會報錯了

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

windows命令行更換源(永久)

有很多人是用手動方式,在C:\Users\Administrator\AppData\Roaming下,創(chuàng)建一個pip文件夾,編輯pip.ini文件
這里采用命令操作,win+R然后cmd的命令行換源,輸入以下兩行指令即可文章來源地址http://www.zghlxwxcb.cn/news/detail-608173.html

# 以阿里云為例
pip config set global.index-url http://mirrors.aliyun.com/simple
pip config set global.trusted-host mirrors.aliyun.com

# 還有其他很多源,比如以下:
# http://mirrors.aliyun.com/pypi/simple 阿里云
# http://pypi.douban.com/simple 豆瓣
# https://pypi.tuna.tsinghua.edu.cn/simple 清華大學
# http://pypi.mirrors.ustc.edu.cn/simple 中國科學技術(shù)大學

到了這里,關(guān)于windows: pip install 報錯SSLError Can‘t connect to HTTPS URL because the SSL module is not available的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務器費用

相關(guān)文章

  • 報錯:To install it, you can run : npm install --save @api/***解決方法

    報錯:To install it, you can run : npm install --save @api/***解決方法

    以下是報錯原因: 報錯信息如下 以下是解決的失敗過程: 首先它告訴你讓你安裝如下: npm install --save @/api/tNursingStaffCirculation 如果安裝成功的話,那就沒事了,很明顯安裝會失敗 報錯如下: 所在位置 行:1 字符: 20 npm install --save @/api/tNursingStaffCirculation 源文本中包含無法識別的

    2024年02月11日
    瀏覽(22)
  • Can‘t connect to HTTPS URL because the SSL module is not available

    miniconda自帶的python3.8 在使用pip安裝包的時候報錯 將conda的安裝目錄下的 復制到DLLs目錄下 https://github.com/conda/conda/issues/8273 https://blog.csdn.net/Sky_Tree_Delivery/article/details/109078288

    2024年02月13日
    瀏覽(53)
  • pip 安裝報錯 required to install pyproject.toml-based projects

    pip 安裝報錯 required to install pyproject.toml-based projects

    主要提示這兩個信息: 解決: 進入 vs官網(wǎng),下載安裝 成功安裝后,還要安裝以下內(nèi)容: 重新執(zhí)行 pip, 成功下載! 注意一定勾選上“使用C++的桌面開發(fā)”,只安裝 MSBuild工具 是沒用的, 我已經(jīng)幫大家驗證過了,然后“使用C++的桌面開發(fā)”中的可選內(nèi)容,我沒有測試需要哪一個,我

    2024年02月16日
    瀏覽(23)
  • pip安裝paddlepaddle報錯ERROR: Could not install packages due to an OSError

    ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: \\\'C:\\\\Users\\\\yang\\\\AppData\\\\Local\\\\Packages\\\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\\\LocalCache\\\\local-packages\\\\Python39\\\\site-packages\\\\paddle\\\\include\\\\paddle\\\\phi\\\\kernels\\\\fusion\\\\cutlass\\\\memory_efficient_attention\\\\iterators\\\\predicated_tile_access_iter

    2024年02月21日
    瀏覽(32)
  • Mysql登錄報錯:Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)

    Mysql登錄報錯:Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)

    可能每個人遇到問題的情況不一樣,首先打開服務我的是當時登錄mysql輸完密碼就會報錯:Can\\\'t connect to MySQL server on \\\'localhost:3306\\\' (10061); 網(wǎng)上有的說可以先啟動mysql在登陸,但我的輸入\\\'net start mysql\\\'也沒用,并且我打開服務,發(fā)現(xiàn)里面也沒有MySql。于是我在想,是不是我的MyS

    2024年02月15日
    瀏覽(23)
  • 運行Dockerfile報錯:ERROR: failed to solve: process “/bin/sh -c pip3 install flask“

    運行Dockerfile報錯:ERROR: failed to solve: process “/bin/sh -c pip3 install flask“

    運行Dockerfile時報錯,Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by \\\'ConnectTimeoutError(urllib3.connection.VerifiedHTTPSConnection object at 0x7f22bcb635f8, \\\'Connection to pypi.python.org timed out. (connect timeout=15)\\\')\\\': /simple/flask/ 出現(xiàn)該報錯是因為pip install flask時用的國外

    2024年02月16日
    瀏覽(33)
  • 登錄mysql報錯 Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)解決方法

    登錄mysql報錯 Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)解決方法

    1、以管理員身份運行cmd窗口,執(zhí)行命令mysql -uroot -p,出現(xiàn)錯誤 Can\\\'t connect to MySQL server on \\\'localhost:3306\\\' (10061),這時執(zhí)行命令mysqld --console ?2、不要關(guān)閉第一步的cmd窗口,再以管理員身份運行一個cmd窗口,執(zhí)行命令mysql -uroot -p,輸入正確密碼,此時就可登錄成功 ?

    2024年02月13日
    瀏覽(23)
  • 連接數(shù)據(jù)庫報錯2003-Can‘t connect to MySQL server on ‘localhost‘(10061)

    連接數(shù)據(jù)庫報錯2003-Can‘t connect to MySQL server on ‘localhost‘(10061)

    連接數(shù)據(jù)庫報錯:2003-Can’t connect to Mysql server on ‘localhost’(10061) 連接數(shù)據(jù)庫報錯:2003-Can’t connect to Mysql server on ‘localhost’(10061) 1251-Client does not support authentication protocol requested by server;consider upgrading MySQL client ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (us

    2024年02月05日
    瀏覽(43)
  • 解決Mysql報錯2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)

    解決Mysql報錯2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)

    1.找到mysql文件夾,將my,ini文件放入bin文件夾 2.管理員模式打開cmd 3.輸入 netstat -ano 查看端口占用情況,這里我已經(jīng)開啟mysql應用,所以會有3306,如果沒有開啟是不會有的 4.輸入 sc delete mysql ,刪除mysql服務 5.將data文件夾下數(shù)據(jù)進行刪除 6.輸入 mysqld --initialize --user=mysql --console

    2024年02月14日
    瀏覽(22)
  • 解決“Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)“MySQL登錄報錯問題

    1.按下”Win“+”R鍵“打開運行 2.輸入” services.msc“ 3.找到MYSQL一項,右鍵點擊屬性 4.在屬性中:將“啟動類型”改為“自動” 5.在屬性中:點擊“服務狀態(tài)”下的“啟動”后,MySQL便可以正常登錄。 ? 1.按下“Win+R”鍵打開運行 2.輸入\\\"cmd\\\"打開控制臺,打開控制臺后,在控制

    2024年02月07日
    瀏覽(15)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包