正确设置 pip,避免There was a problem confirming the ssl certificate问题
windows 环境下,python 安装好后,最好将 pip 源换成国内的,同时添加一下信任主机。避免形如: Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=44 3): Max retries exceeded with url: /simple/requests/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable t
正确设置 pip,避免There was a problem confirming the ssl certificate问题最先出现在Python成神之路。
共有 0 条评论