{"id":3054,"date":"2018-12-09T22:10:53","date_gmt":"2018-12-09T13:10:53","guid":{"rendered":"https:\/\/tech.akat.info\/?p=3054"},"modified":"2018-12-09T22:18:07","modified_gmt":"2018-12-09T13:18:07","slug":"ubuntu-16-04-%e3%81%a7%e3%81%ae-pip-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=3054","title":{"rendered":"Ubuntu 16.04 \u3067\u306e pip \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u3044\u304f\u3064\u304b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u305f\u3081\u3001\u8a18\u9332\u3092\u6b8b\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=16.04\r\nDISTRIB_CODENAME=xenial\r\nDISTRIB_DESCRIPTION=&quot;Ubuntu 16.04.5 LTS&quot;\r\n# curl -O https:\/\/bootstrap.pypa.io\/get-pip.py\r\n# python get-pip.py\r\n# pip --version\r\n\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_vendor\/requests\/__init__.py:83: RequestsDependencyWarning: Old version of cryptography (&#x5B;1, 2, 3]) may cause slowdown.\r\n  warnings.warn(warning, RequestsDependencyWarning)\r\npip 18.1 from \/usr\/local\/lib\/python2.7\/dist-packages\/pip (python 2.7)\r\n# pip install --upgrade cryptography\r\n...\r\n# pip --version\r\nTraceback (most recent call last):\r\n  File &quot;\/usr\/local\/bin\/pip&quot;, line 7, in &lt;module&gt;\r\n    from pip._internal import main\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_internal\/__init__.py&quot;, line 40, in &lt;module&gt;\r\n    from pip._internal.cli.autocompletion import autocomplete\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_internal\/cli\/autocompletion.py&quot;, line 8, in &lt;module&gt;\r\n    from pip._internal.cli.main_parser import create_main_parser\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_internal\/cli\/main_parser.py&quot;, line 12, in &lt;module&gt;\r\n    from pip._internal.commands import (\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_internal\/commands\/__init__.py&quot;, line 6, in &lt;module&gt;\r\n    from pip._internal.commands.completion import CompletionCommand\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_internal\/commands\/completion.py&quot;, line 6, in &lt;module&gt;\r\n    from pip._internal.cli.base_command import Command\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_internal\/cli\/base_command.py&quot;, line 18, in &lt;module&gt;\r\n    from pip._internal.download import PipSession\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_internal\/download.py&quot;, line 15, in &lt;module&gt;\r\n    from pip._vendor import requests, six, urllib3\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_vendor\/requests\/__init__.py&quot;, line 97, in &lt;module&gt;\r\n    from pip._vendor.urllib3.contrib import pyopenssl\r\n  File &quot;\/usr\/local\/lib\/python2.7\/dist-packages\/pip\/_vendor\/urllib3\/contrib\/pyopenssl.py&quot;, line 46, in &lt;module&gt;\r\n    import OpenSSL.SSL\r\n  File &quot;\/usr\/lib\/python2.7\/dist-packages\/OpenSSL\/__init__.py&quot;, line 8, in &lt;module&gt;\r\n    from OpenSSL import rand, crypto, SSL\r\n  File &quot;\/usr\/lib\/python2.7\/dist-packages\/OpenSSL\/SSL.py&quot;, line 118, in &lt;module&gt;\r\n    SSL_ST_INIT = _lib.SSL_ST_INIT\r\nAttributeError: 'module' object has no attribute 'SSL_ST_INIT'\r\n\r\n# python -m easy_install --upgrade pyOpenSSL\r\nSearching for pyOpenSSL\r\nReading https:\/\/pypi.org\/simple\/pyOpenSSL\/\r\nDownloading https:\/\/files.pythonhosted.org\/packages\/96\/af\/9d29e6bd40823061aea2e0574ccb2fcf72bfd6130ce53d32773ec375458c\/pyOpenSSL-18.0.0-py2.py3-none-any.whl#sha256=26ff56a6b5ecaf3a2a59f132681e2a80afcc76b4f902f612f518f92c2a1bf854\r\nBest match: pyOpenSSL 18.0.0\r\nProcessing pyOpenSSL-18.0.0-py2.py3-none-any.whl\r\nInstalling pyOpenSSL-18.0.0-py2.py3-none-any.whl to \/usr\/local\/lib\/python2.7\/dist-packages\r\nwriting requirements to \/usr\/local\/lib\/python2.7\/dist-packages\/pyOpenSSL-18.0.0-py2.7.egg\/EGG-INFO\/requires.txt\r\nAdding pyOpenSSL 18.0.0 to easy-install.pth file\r\n\r\nInstalled \/usr\/local\/lib\/python2.7\/dist-packages\/pyOpenSSL-18.0.0-py2.7.egg\r\nProcessing dependencies for pyOpenSSL\r\nFinished processing dependencies for pyOpenSSL\r\nroot@VirtualMachine01:\/usr\/local\/sbin# pip --version\r\npip 18.1 from \/usr\/local\/lib\/python2.7\/dist-packages\/pip (python 2.7)\r\n\r\n# pip --version\r\npip 18.1 from \/usr\/local\/lib\/python2.7\/dist-packages\/pip (python 2.7)\r\n<\/pre>\n<h1>\u53c2\u8003URL<\/h1>\n<p>https:\/\/stackoverflow.com\/questions\/51283708\/python-pip-package-requestsdependencywarning-when-installing-elastic-search-cura<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u304f\u3064\u304b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u305f\u3081\u3001\u8a18\u9332\u3092\u6b8b\u3057\u3066\u304a\u304f\u3002 # cat \/etc\/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenia [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[76],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3054"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3054"}],"version-history":[{"count":5,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3054\/revisions"}],"predecessor-version":[{"id":3060,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3054\/revisions\/3060"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}