pip install whl 错误版本解决

(env) D:pythonmyprojectenvLibsite-packagessuperset>pip install "D:Downloadscx_Oracle-5.3+oci12c-cp36-cp36m-win_amd64.whl"
cx_Oracle-5.3+oci12c-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

(env) D:pythonmyprojectenvLibsite-packagessuperset>print(pip.pep425tags.get_supported())
无法初始化设备 PRN

(env) D:pythonmyprojectenvLibsite-packagessuperset>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(pip.pep425tags.get_supported())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'pip' is not defined
>>> import pip
>>> print(pip.pep425tags.get_supported())
[('cp36', 'cp36m', 'win32'), ('cp36', 'none', 'win32'), ('py3', 'none', 'win32'), ('cp36', 'none', 'any'), ('cp3', 'none', 'any'), ('py36', 'none', 'any'), ('py
3', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none'
, 'any')]
>>> eixt()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'eixt' is not defined
>>> exit()

(env) D:pythonmyprojectenvLibsite-packagessuperset>pip install "D:Downloadscx_Oracle-5.3+oci12c-cp36-none-any.whl"
Processing d:downloadscx_oracle-5.3+oci12c-cp36-none-any.whl
Installing collected packages: cx-Oracle
Successfully installed cx-Oracle-5.3+oci12c

原文地址:https://www.cnblogs.com/Jonecmnn/p/7730159.html