软件包:cx_Oracle for Python 3.5,Windows64位。甲骨文11.2.0.1.0

警察水手

我正在尝试在Windows PC上安装cx_Oracle。我在命令提示符下运行以下命令:

pip install cx_Oracle

这给了我以下错误:

Collecting cx-Oracle
Could not find a version that satisfies the requirement cx-Oracle (from versions: )
No matching distribution found for cx-Oracle

我正在使用Windows 64位计算机和Python 3.5(Anaconda3)我的PC上已安装的Oracle vcersionOracle 11.2.0.1.0和oracle-instantclient版本oracle-instantclient-11.2.0.4.0-0

请让我知道我在想什么。我应该将python版本降级到3.4吗?如果是的话,那么如何在Anaconda中使用命令行呢?

没扭

通过执行以下步骤,我克服了这个问题:

创建一个Python 3.4环境

Windows + R打开运行

键入“ cmd” (没有撇号),然后按Enter键以打开命令提示符。

输入以下内容:

$ conda create -n py34 python=3.4 anaconda

激活并更新新环境

$ activate py34    
$ conda update conda

卸载并重新安装Spyder的qt方面

当您尝试从py34环境中打开时,此步骤解决了Spyder的qt问题

$ conda remove qt --name py34 
$ conda install qt=4.8.7=vc10_4

去测试

确保已激活py34环境。

$ spyder # will launch spyder

在Spyder的Interactive Console中,输入:

$ import cx_Oracle # the O in Oracle must be capitalized

如果没有出错,那么您就完成了!

我的解决方案主要是根据以下发布发现的:

http://conda.pydata.org/docs/py2or3.html
https://github.com/spyder-ide/spyder/issues/2858

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

python 将列表 [0, 1, 2, 3, 4, 5] 转换为 [0, 1, 2], [1,2,3], [2,3,4]

我希望输出像[[0,0,0,0,],[0,1,0,0],[0,2,0,0],[0,3,0,0]]

如何在x轴值出现多次的python中进行绘制,例如0 1 2 3 2 1 0

该代码的含义([1、2、3] || 0)[0]

JOIN (VALUES (0),(1),(2),(3),...... ON 逻辑)

使用Scala收集方法可帮助将[0,0,0,1,1,1,1,0,0,1,1]的列表转换为[3,4,2,2]

python3:〜2 = -0b11?

Python-0 ** 0 == 1?

创建序列0、0、0、0、0、1、1、1、1、1、2、2、2、2、2、3、3、3、3、3、4、4、4、4、4 ,带有seq()的4

在R中将(0,1,0,0,1,1,1)转换为(0,0,0,1,0,1,2)

python中的transpose(3,0,1,2)是什么意思

为什么 Python 为 [0xfor x in (1, 2, 3)] 返回 [15]?

为什么2a0 ++等于2a1,但2e0 ++等于3?

1和0的python位序列

如何使用a [0]-a [0] a [1]-a [0] a [1] a [2]输出数组

我希望变量在0、1、2、3之间更改,并在按键3后返回0

Python:ValueError:形状(3,)和(118,1)不对齐:3(dim 0)!= 118(dim 0)

使用3位数系统0,1,2进行二进制转换

Vue 排序数组后跟索引( 0, 1, 2, 3 ... )

在Python中,如何对嵌套列表求和:[[1,0],[1,1],[1,0]]→[3,1]

[0,1,2,3,4]和[[0],[1],[2],[3],[4]]和有什么区别?

〜1和〜0在python 3中给出奇怪的结果

将数组的元素添加为a [0],a [1] + a [2],a [3] + a [4] + a [5],a [6] + a [7] + a [8] + a [9] ...等等

C中{0,1,2,3,4,5,6,7,8,9}外的条件

为什么map <bool,int> m = {{1,2,3,4,5,0}} 1号而不是3号?

下划线或lazy.js映射(0,1,2,3,4)+(1,2,3,4,5)->(1,3,5,7,9)

For 循环输出 0,-1,1,-2,2,-3,3

按情况订购以获取此信息:-1,-2,-3、0,+ 1,+ 2,+ 3

這是一個關於碼商的 mq 問題。我試過 [3 0 5 2 7] ,[2 1 4 3 6], [1 2 3 4 5]