Python 2.7 在Python2.7中仍然可以使用pipenv吗?

Python 2.7 在Python2.7中仍然可以使用pipenv吗?,python-2.7,pipenv,Python 2.7,Pipenv,我用pipenv在我的计算机上安装了Python2.7和Python3.8。我通过运行以下命令创建了一个2.7项目: pipenv --two install pipenv shell > python --version > > Python 2.7.15 但当我尝试使用pipenv安装新的Dependency时,由于SNIMissingWarning,我遇到了一个TLS错误: pip install pylint ... [pipenv.exceptions.Instal

我用pipenv在我的计算机上安装了Python2.7和Python3.8。我通过运行以下命令创建了一个2.7项目:

pipenv --two install
pipenv shell
> python --version
> > Python 2.7.15
但当我尝试使用pipenv安装新的Dependency时,由于SNIMissingWarning,我遇到了一个TLS错误:

pip install pylint
...
[pipenv.exceptions.InstallError]: ['Collecting astroid==1.6.6 (from -r C:\\Users\\aymeric\\AppData\\Local\\Temp\\pipenv-pktqf1dv-requirements\\pipenv-66rq3_4k-requirement.txt (line 1))', "  Could not fetch URL https://pypi.org/simple/astroid/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/astroid/ (Caused by SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)) - skipping"]
[pipenv.exceptions.InstallError]: ["DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. 
More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support",  'c:\\users\\aymeric\\.virtualenvs\\firmware-pjqfwcnq\\lib\\site-packages\\ pip\\_vendor\\urllib3\\util\\ssl_.py:365: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. 
This may cause the server to present an incorrect TLS certificate, which can cause validation failures. 
You can upgrade to a newer version of Python to solve this.
For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings', '  SNIMissingWarning', 'c:\\users\\aymeric\\.virtualenvs\\firmware-pjqfwcnq\\lib\\site-packages\\pip\\_vendor\\urllib3\\util\\ssl_.py:149: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
这很奇怪,因为SNIMissingWarning应该是2.7.9中的补丁,如中所述

如果现在无法从2.7 virtualenv访问远程存储库,您该怎么办?
问题是
SSLError(1'”\u ssl.c:499:error:1407742E:ssl例程:SSL23\u GET\u SERVER\u HELLO:tlsv1警报协议版本“)
,这意味着pip试图使用不兼容的TLS版本连接到PyPI。谢谢,但对我来说,潜在的错误是:
SNIMissingWarning:HTTPS请求已发出,但SNI(服务器名称指示)TLS扩展在此平台上不可用。这可能会导致服务器提供不正确的TLS证书,这可能会导致验证失败。
问题是
SSLError(1',\u ssl.c:499:error:1407742E:ssl例程:SSL23\u GET\u Server\u HELLO:tlsv1警报协议版本')
,这意味着pip试图使用不兼容的TLS版本连接到PyPI。谢谢,但对我来说,潜在错误是:
SNIMissingWarning:已发出HTTPS请求,但SNI(服务器名称指示)无效TLS扩展在此平台上不可用。这可能会导致服务器提供不正确的TLS证书,从而导致验证失败。