cmd在使用pip命令来安装对应的.whl文件时报错DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple ERROR: netCDF4-1.5.3-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform. d:\ruanjian_wr\gis_py27_wr\arcgis10.2\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:164: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. 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 InsecurePlatformWarning, Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError('_ssl.c:489: The handshake operation timed out',),)) - skipping
时间: 2024-04-27 14:22:39 浏览: 220
Python使用pip安装报错:is not a supported wheel on this platform的解决方法
5星 · 资源好评率100%
这个错误的原因是你的 Python 版本过低,Python 2.7 已经不再维护了,建议你升级到 Python 3.6 或以上的版本。另外,提示中还有一个 InsecurePlatformWarning 警告,是因为你的 SSL 配置不正确,可以参考提示中提供的链接来解决。至于 .whl 文件不支持的问题,可能是你下载的文件与你的操作系统不兼容,可以尝试在官方网站下载适合你操作系统和 Python 版本的文件。
阅读全文