{"id":1737,"date":"2018-07-05T00:00:22","date_gmt":"2018-07-04T16:00:22","guid":{"rendered":"https:\/\/zoco.me\/?p=149"},"modified":"2018-07-05T00:00:22","modified_gmt":"2018-07-04T16:00:22","slug":"certbot-requests-packages-urllib3-resolve","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/certbot-requests-packages-urllib3-resolve.html","title":{"rendered":"Certbot\u63d0\u793arequests.packages.urllib3\u89e3\u51b3"},"content":{"rendered":"<p>\u4eca\u5929\u7ed9\u624b\u5934\u4e0a\u7684\u4e00\u53f0\u670d\u52a1\u5668\u66f4\u65b0HTTPS\u8bc1\u4e66\uff0c\u56e0\u4e3a\u4e4b\u524d\u7684\u8bc1\u4e66\u8fc7\u671f\u4e86\uff0c\u60f3\u7528letsencrypt\u66ff\u4ee3\u4e0b\uff0c\u4f46\u662f\u4e0d\u77e5\u9053\u4e3a\u6bdb\u9047\u5230\u4e86\u4e2a\u62a5\u9519\uff0c\u82b1\u4e86\u70b9\u65f6\u95f4\u89e3\u51b3\uff0c\u8fd9\u91cc\u4fdd\u5b58\u4e00\u4e0b\u3002<br \/>\n<!--more--><br \/>\n\u7b80\u5355\u7684\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<pre><code>ImportError: No module named 'requests.packages.urllib3'\n<\/code><\/pre>\n<p>\u610f\u601d\u662f\uff0c\u627e\u4e0d\u5230\u4e0a\u9762\u54ea\u4e2a\u6a21\u5757\uff0c\u6211\u5bf9Python\u4e0d\u719f\u6089\uff0c\u4e5f\u5c31\u62ff\u6765\u7b80\u5355\u5199\u4e86\u51e0\u4e2a\u722c\u866b\uff0c\u6211\u8bb0\u5f97requests\u548curllib\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u5305\uff0c\u96be\u9053\u662f\u6211\u8bb0\u9519\u4e86\uff0c\u8fd8\u662f\u8fd9\u4e24\u4e2a\u5305\u5728\u65b0\u7248\u672c\u5408\u5e76\u5230\u4e00\u8d77\u4e86\uff1f<\/p>\n<p>\u6682\u65f6\u5148\u4e0d\u7ba1\u4e86\uff0c\u89e3\u51b3\u95ee\u9898\u8981\u7d27\u3002<\/p>\n<p>\u5c06\u62a5\u9519\u4fe1\u606f\u653e\u5230Google\u641c\u4e86\u4e00\u628a\uff0c\u627e\u5230\u4e2a\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<pre><code>pip install requests urllib3 pyOpenSSL --force --upgrade\n<\/code><\/pre>\n<p>\u6267\u884c\u4e4b\u540e\uff0c\u53d1\u73b0\u5e76\u6ca1\u6709\u89e3\u51b3\uff0c\u518d\u6b21\u6267\u884c<strong>certbot certonly<\/strong>\uff0c\u51fa\u73b0\u4e86\u65b0\u7684\u62a5\u9519\uff1a<\/p>\n<pre><code>ImportError: 'pyOpenSSL' module missing required functionality.\n<\/code><\/pre>\n<p>\u76f4\u63a5\u5b89\u88c5pyOpenSSL\u6a21\u5757\u4e5f\u4e0d\u884c\uff0c\u63d0\u793a\u5df2\u5b89\u88c5\uff0c\u8fd9\u5c31\u5c34\u5c2c\u4e86\u54c8\u3002\u6211\u53ea\u662f\u60f3\u7533\u8bf7\u4e2aSSL\u8bc1\u4e66\u800c\u5df2\u3002<\/p>\n<p>\u597d\u5728\u540e\u9762\u53c8\u627e\u5230\u4e2a\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<pre><code>pip uninstall requests\npip uninstall urllib3\nyum remove python-urllib3\nyum remove python-requests\nyum install python-urllib3\nyum install python-requests\nyum install certbot\n<\/code><\/pre>\n<p>\u529e\u6cd5\u5c31\u662f\uff0c\u5378\u8f7d\u5148\u6709\u7248\u672c\u7684requests\u548curllib3\uff0c\u7136\u540e\u91cd\u65b0\u5b89\u88c5\u3002\u8fd8\u522b\u8bf4\uff0c\u6267\u884c\u8fd9\u51e0\u4e2a\u547d\u4ee4\u4e4b\u540e\uff0c\u95ee\u9898\u771f\u7684\u89e3\u51b3\u4e86\uff0c\u6267\u884c<strong>certbot certonly<\/strong>\u5c31\u4e0d\u62a5\u9519\u4e86\u3002<\/p>\n<p>\u9047\u5230\u540c\u6837\u95ee\u9898\u7684\u670b\u53cb\uff0c\u53ef\u4ee5\u8bd5\u8bd5\uff0c\u5e0c\u671b\u80fd\u5e2e\u4e0a\u4f60\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u7ed9\u624b\u5934\u4e0a\u7684\u4e00\u53f0\u670d\u52a1\u5668\u66f4\u65b0HTTPS\u8bc1\u4e66\uff0c\u56e0\u4e3a\u4e4b\u524d\u7684\u8bc1\u4e66\u8fc7\u671f\u4e86\uff0c\u60f3\u7528letsencrypt\u66ff\u4ee3\u4e0b\uff0c\u4f46\u662f\u4e0d\u77e5\u9053 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/certbot-requests-packages-urllib3-resolve.html\"> <span class=\"screen-reader-text\">Certbot\u63d0\u793arequests.packages.urllib3\u89e3\u51b3<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[18,62,81,100],"class_list":["post-1737","post","type-post","status-publish","format-standard","hentry","category-tech","tag-certbot","tag-letsencrypt","tag-python","tag-ssl"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=1737"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1737\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}