软件包:cx_Oracle for Python 3.5,Windows64位。甲骨文11.2.0.1.0 [英] Package : cx_Oracle for Python 3.5, windows64 bit. Oracle 11.2.0.1.0

查看:109
本文介绍了软件包:cx_Oracle for Python 3.5,Windows64位。甲骨文11.2.0.1.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  pip install cx_Oracle 

这给了我以下错误:

 收集cx-Oracle 
找不到满足cx-Oracle要求的版本(从版本:)
没有找到与cx-Oracle


我正在使用 windows 64bit 计算机和 Python 3.5(Anaconda3) 。我的PC上已安装的Oracle vcersion是 Oracle 11.2.0.1.0 和oracle-instantclient版本 oracle-instantclient-11.2.0.4.0-0



请让我知道我在想什么。我应该将python版本降级到3.4吗?如果是,那么如何在Anaconda中使用命令行来完成此任务?

解决方案

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

创建Python 3.4环境



Windows + R打开运行



键入'cmd'(不带撇号),然后按Enter键以打开命令提示符。



键入以下内容:

  $ conda create -n py34 python = 3.4 anaconda 

激活并更新新环境

  $激活py34 
$ conda更新conda

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



此步骤可修复Spyder的qt问题尝试从py34环境中打开时

  $ conda删除qt --name py34 
$ conda安装qt = 4.8.7 = vc10_4

到Te st



确保已激活py34环境。

  $ spyder#将启动spyder 

Spyder类型的Interactive Console:

  $ import cx_Oracle#Oracle中的O必须大写

如果没有出错,就说明您完成了!



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



http://conda.pydata.org/docs/py2or3.html

https://github.com/spyder-ide/spyder/issues/2858


I am trying to install cx_Oracle on my windows PC. I ran following command in command prompt:

pip install cx_Oracle

This is giving me the following error:

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

I am using windows 64bit machine and Python 3.5(Anaconda3). Intsalled Oracle vcersion on my PC is Oracle 11.2.0.1.0 and oracle-instantclient version oracle-instantclient-11.2.0.4.0-0

Please let me know what am I missing. Should I downgrade my python version to 3.4? If yes, than how to do it using command line in Anaconda?

解决方案

I got past this issue by following these steps:

Create a Python 3.4 environment

Windows + R to open Run

Type 'cmd' (no apostrophes) and hit enter to open the command prompt.

Type the following:

$ conda create -n py34 python=3.4 anaconda

Activate and update the new environment

$ activate py34    
$ conda update conda

Uninstall and reinstall the qt aspect of Spyder

This step fixes a qt issue with Spyder when trying to open from your py34 environment

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

To Test

Make sure you have your py34 environment activated.

$ spyder # will launch spyder

In the Interactive Console in Spyder type:

$ import cx_Oracle # the O in Oracle must be capitalized

If it doesn't error out, you're done!

My solutions were found mostly based on the following postings:

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

这篇关于软件包:cx_Oracle for Python 3.5,Windows64位。甲骨文11.2.0.1.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆