python无法初始化设备prn_pip install whl 错误版本解决

在尝试使用pip安装cx_Oracle-5.3+oci12c-cp36-cp36m-win_amd64.whl文件时遇到了不支持的平台错误。通过检查pip支持的PEP 425标签,发现系统为32位。改用cx_Oracle-5.3+oci12c-cp36-none-any.whl文件后,成功安装了cx_Oracle。
摘要由CSDN通过智能技术生成

(env) D:\python\myproject\env\Lib\site-packages\superset>pip install "D:\Downloads\cx_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:\python\myproject\env\Lib\site-packages\superset>print(pip.pep425tags.get_supported())

无法初始化设备 PRN

(env) D:\python\myproject\env\Lib\site-packages\superset>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 "", line 1, in

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 "", line 1, in

NameError: name 'eixt' is not defined

>>> exit()

(env) D:\python\myproject\env\Lib\site-packages\superset>pip install "D:\Downloads\cx_Oracle-5.3+oci12c-cp36-none-any.whl"

Processing d:\downloads\cx_oracle-5.3+oci12c-cp36-none-any.whl

Installing collected packages: cx-Oracle

Successfully installed cx-Oracle-5.3+oci12c

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值