{"id":739,"date":"2023-08-22T09:44:41","date_gmt":"2023-08-22T01:44:41","guid":{"rendered":"http:\/\/www.inhhh.com\/blog\/?p=739"},"modified":"2023-08-22T11:33:26","modified_gmt":"2023-08-22T03:33:26","slug":"pip%e5%ae%89%e8%a3%85%e4%be%9d%e8%b5%96%e6%97%b6%e6%8a%a5ssl%e7%9a%84%e9%97%ae%e9%a2%98%e6%9b%b4%e6%96%b0pip-conf","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=739","title":{"rendered":"pip\u5b89\u88c5\u4f9d\u8d56\u65f6\u62a5ssl\u7684\u95ee\u9898,\u66f4\u65b0pip.conf"},"content":{"rendered":"\n<p>\u62a5\u9519\u4fe1\u606f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: \/packages\/5f\/25\/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940\/pip-18.0-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, u'&#91;SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),))<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>vi \/etc\/pip.conf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;global] \r\ntimeout = 6000 \r\nindex-url = http:\/\/pypi.douban.com\/simple\/  \nextra-index-url = https:\/\/www.piwheels.org\/simple\/\r\n&#91;install] \r\nuse-mirrors = true \r\nmirrors = http:\/\/pypi.douban.com\/simple\/  \r\ntrusted-host = pypi.douban.com<\/code><\/pre>\n\n\n\n<p>\u6d4b\u8bd5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 --version\npip3 install docker<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>pip\u66f4\u65b0\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org pip<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u62a5\u9519\u4fe1\u606f vi \/etc\/pip.conf \u6d4b\u8bd5 pip\u66f4\u65b0\u547d\u4ee4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-739","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=739"}],"version-history":[{"count":1,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":740,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions\/740"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}