{"id":1884,"date":"2020-08-07T20:05:11","date_gmt":"2020-08-07T20:05:11","guid":{"rendered":"https:\/\/material.watanab2.mbsrv.net\/blog\/?p=1884"},"modified":"2023-02-08T20:04:37","modified_gmt":"2023-02-08T20:04:37","slug":"python-openssl-notloaded","status":"publish","type":"post","link":"https:\/\/material.watanab2.mbsrv.net\/blog\/2020\/08\/python-openssl-notloaded\/","title":{"rendered":"python\u3067openssl\u304c\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u30a8\u30e9\u30fc\u306b\u5bfe\u51e6\u3067\u304d\u305f\u3084\u308a\u65b9"},"content":{"rendered":"\n<p>\u3053\u308c\u3067\u3059\u3002\u3069\u3046\u3082\u8abf\u3079\u3066\u308b\u30682020\u5e74\u306e\u59cb\u3081\u3054\u308d\u66f8\u304b\u308c\u305f\u8a18\u4e8b\u304c\u591a\u304f\u3001\u6700\u8fd1openssl\u304c1.0.x\u304b\u30891.1\u306b\u4e0a\u304c\u3063\u305f\u305b\u3044\u3067openssl\u3092\u4f7f\u3046\u30c4\u30fc\u30eb\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p><strong>python\u306e\u5834\u54083.7\u304b\u30893.8\u306bpyenv\u3067\u5207\u308a\u66ff\u3048\u3066\u3084\u3063\u305f\u3089\u65b0\u3057\u3044openssl\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/strong><\/p>\n\n\n\n<p>ImportError: dlopen(\/Users\/username\/.pyenv\/versions\/3.7.4\/lib\/python3.7\/lib-dynload\/_ssl.cpython-37m-darwin.so, 2): Library not loaded: \/usr\/local\/opt\/openssl\/lib\/libssl.1.0.0.dylib<\/p>\n\n\n\n<p class=\"has-medium-font-size\">ruby\u306e\u5834\u5408\u4f7f\u3044\u305f\u3044openssl\u3092\u4f7f\u3063\u3066\u308b\u30c4\u30fc\u30eb\u3092brew reinstall\u3057\u305f\u3089\u65b0\u3057\u3044openssl1.1\u3092\u8aad\u307f\u8fbc\u3093\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u95a2\u4fc2\u3042\u3063\u305f\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c<strong>~\/.bash_profile<\/strong>\u3082<\/p>\n\n\n\n<p class=\"has-dark-gray-background-color has-text-color has-background\" style=\"color:#01fe30\">export PATH=&#8221;\/usr\/local\/opt\/openssl@1.1\/bin:$PATH&#8221;<br>export LDFLAGS=&#8221;-L\/usr\/local\/opt\/openssl@1.1\/lib&#8221;<br>export CPPFLAGS=&#8221;-I\/usr\/local\/opt\/openssl@1.1\/include&#8221;<\/p>\n\n\n\n<p>\u2191\u2193\u3053\u3053\u7e4b\u304c\u3063\u3066\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u306a\u305c\u304b\u30d6\u30e9\u30c3\u30af\u8272\u304c\u5206\u304b\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"has-dark-gray-background-color has-text-color has-background\" style=\"color:#01fe30\">export PATH=\/usr\/local\/Cellar\/openssl@1.1\/1.1.1g\/bin:$PATH<br>export LD_LIBRARY_PATH=\/usr\/local\/Cellar\/openssl@1.1\/1.1.1g\/lib:$LD_LIBRARY_PATH<br>export CPATH=\/usr\/local\/Cellar\/openssl@1.1\/1.1.1g\/include:$CPATH<br>export LDFLAGS=-L\/usr\/local\/Cellar\/openssl@1.1\/1.1.1g\/lib<br>export CPPFLAGS=-I\/usr\/local\/Cellar\/openssl@1.1\/1.1.1g\/include<br>export PKG_CONFIG_PATH=\/usr\/local\/Cellar\/openssl@1.1\/1.1.1g\/pkgconfig:$PKG_CONFIG_PATH<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u65b0\u3057\u304f1.0.x\u304b\u3089@1.1\u306e\u30d1\u30b9\u306b\u66f8\u304d\u63db\u3048\u3066<strong> source ~\/.bash_profile<\/strong>\u3067\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002\uff08\u3053\u308c\u306f\u5168\u304f\u95a2\u4fc2\u306a\u304b\u3063\u305f\u3088\u3046\u3067\u3057\u305f\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u3067\u3059\u3002\u3069\u3046\u3082\u8abf\u3079\u3066\u308b\u30682020\u5e74\u306e\u59cb\u3081\u3054\u308d\u66f8\u304b\u308c\u305f\u8a18\u4e8b\u304c\u591a\u304f\u3001\u6700\u8fd1openssl\u304c1.0.x\u304b\u30891.1\u306b\u4e0a\u304c\u3063\u305f\u305b\u3044\u3067openssl\u3092\u4f7f\u3046\u30c4\u30fc\u30eb\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u3067\u3057\u305f\u3002 python\u306e\u5834\u54083.7\u304b\u30893.8\u306bpye &hellip; <a href=\"https:\/\/material.watanab2.mbsrv.net\/blog\/2020\/08\/python-openssl-notloaded\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;python\u3067openssl\u304c\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u30a8\u30e9\u30fc\u306b\u5bfe\u51e6\u3067\u304d\u305f\u3084\u308a\u65b9&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[162],"tags":[159],"class_list":["post-1884","post","type-post","status-publish","format-standard","hentry","category-software-categories","tag-159"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/posts\/1884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/comments?post=1884"}],"version-history":[{"count":6,"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/posts\/1884\/revisions"}],"predecessor-version":[{"id":3268,"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/posts\/1884\/revisions\/3268"}],"wp:attachment":[{"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/media?parent=1884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/categories?post=1884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/material.watanab2.mbsrv.net\/blog\/wp-json\/wp\/v2\/tags?post=1884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}