我正试图在我的windows上安装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位机器和Python3.5(Anaconda3)。在我的PC上集成的Oracle是Oracle11.2.0.1.0和oracle版本
请让我知道我错过了什么。我应该把我的python版本降到3.4吗?如果是,那么如何在Anaconda中使用命令行来完成它呢?
发布于 2016-01-07 19:52:02
我通过以下步骤克服了这个问题:
创建Python3.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类型:
$ import cx_Oracle # the O in Oracle must be capitalized如果不出错,你就完蛋了!
我的解决方案主要是根据以下帖子找到的:
http://conda.pydata.org/docs/py2or3.html
发布于 2016-01-21 19:54:52
Python3.5的cx_Oracle二进制文件是在1月18日提供的。
https://stackoverflow.com/questions/34610275
复制相似问题