简体   繁体   English

ssl 错误为什么用 pip 安装

[英]ssl error why installing with pip

Im trying to install pyobjc with pip.我正在尝试使用 pip 安装 pyobjc。 However every time i run it i get this error.但是,每次我运行它时都会出现此错误。 Some forums say to use --trusted as a workaround but it still doesn't work.一些论坛说使用 --trusted 作为一种解决方法,但它仍然不起作用。 My computer is a Mac OS Sierra version 10.12.6我的电脑是 Mac OS Sierra 版本 10.12.6

My command :我的命令:

$ sudo pip install pyobjc-framework-Quartz

Collecting pyobjc-framework-Quartz Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)': /simple/pyobjc-framework-quartz/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)': /simple/pyobjc-framework-quartz/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)': /simple/pyobjc-framework-quartz/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)': /simple/pyobjc-framework-quartz/ Retry收集 pyobjc-framework-Quartz Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) 在连接中断后被 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证)失败 (_ssl.c:833)'),)': /simple/pyobjc-framework-quartz/ 连接后重试 (Retry(total=3, connect=None, read=None, redirect=None, status=None))被 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败 (_ssl.c:833)'),)' 破坏:/simple/pyobjc-framework-quartz/ 重试(重试(总计=2,连接= None, read=None, redirect=None, status=None)) 在连接被 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)') 破坏后,)': /simple /pyobjc-framework-quartz/ 连接被 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]] 证书中断后重试 (Retry(total=1, connect=None, read=None, redirect=None, status=None))验证失败 (_ssl.c:833)'),)': /simple/pyobjc-framework-quartz/ 重试ing (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)': /simple/pyobjc-framework-quartz/ Could not fetch URL https://pypi.python.org/simple/pyobjc-framework-quartz/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/pyobjc-framework-quartz/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)) - skipping Could not find a version that satisfies the requirement pyobjc-framework-Quartz (from versions: ) No matching distribution found for pyobjc-framework-Quartz ing (Retry(total=0, connect=None, read=None, redirect=None, status=None)) 在连接被 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败 (_ssl.c: 833)'),)':/simple/pyobjc-framework-quartz/ 无法获取 URL https://pypi.python.org/simple/pyobjc-framework-quartz/ :确认 ssl 证书时出现问题:HTTPSConnectionPool (host='pypi.python.org', port=443): Max retries exceeded with url: /simple/pyobjc-framework-quartz/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed ( _ssl.c:833)'),)) - 跳过 找不到满足 pyobjc-framework-Quartz 要求的版本(来自版本:)没有为 pyobjc-framework-Quartz 找到匹配的分布

您可以使用以下命令运行:

sudo pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org pyobjc-framework-Quartz

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM