ERROR: Could not find a version that satisfies the requirement pyqt5 ERROR: No matching distribution

灰太狼 2022-10-14 12:56 110阅读 0赞

问题

  1. $pip install pyqt5
  2. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  3. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/pyqt5/
  4. WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/pyqt5/
  5. WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/pyqt5/
  6. WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/pyqt5/
  7. WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/pyqt5/
  8. Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pyqt5/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/pyqt5/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))) - skipping
  9. ERROR: Could not find a version that satisfies the requirement pyqt5
  10. ERROR: No matching distribution found for pyqt5

原因:网络问题,添加下载源后没有信任该源,添加参数--trusted-host pypi.douban.com/pypi.tuna.tsinghua.edu.cn即可

  1. (test) tse@dev-u:~/tse/ebrn-py$ pip install PyQt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
  2. Looking in indexes: http://pypi.douban.com/simple/
  3. Collecting PyQt5
  4. Downloading http://pypi.doubanio.com/packages/ed/62/cd9f10702c75b242f82da858668fba0cda04cda92133244d3d1555e530b4/PyQt5-5.15.4-cp36.cp37.cp38.cp39-abi3-manylinux2014_x86_64.whl (8.3 MB)
  5. |████████████████████████████████| 8.3 MB 1.5 MB/s
  6. Collecting PyQt5-Qt5>=5.15
  7. Downloading http://pypi.doubanio.com/packages/83/d4/241a6a518d0bcf0a9fcdcbad5edfed18d43e884317eab8d5230a2b27e206/PyQt5_Qt5-5.15.2-py3-none-manylinux2014_x86_64.whl (59.9 MB)
  8. |████████████████████████████████| 59.9 MB 3.8 MB/s
  9. Collecting PyQt5-sip<13,>=12.8
  10. Downloading http://pypi.doubanio.com/packages/44/48/325c677a5dd5ba2fb2fc90027f79fc851a77b11aec5b64338a9027994e83/PyQt5_sip-12.9.0-cp38-cp38-manylinux1_x86_64.whl (332 kB)
  11. |████████████████████████████████| 332 kB 3.3 MB/s
  12. Installing collected packages: PyQt5-sip, PyQt5-Qt5, PyQt5
  13. Successfully installed PyQt5-5.15.4 PyQt5-Qt5-5.15.2 PyQt5-sip-12.9.0
  14. (test) tse@dev-u:~/tse/ebrn-py$

参考1:https://blog.csdn.net/qq_33193309/article/details/97235186

发表评论

表情:
评论列表 (有 0 条评论,110人围观)

还没有评论,来说两句吧...

相关阅读