试图安装cx_Oracle [英] Trying to install cx_Oracle

查看:101
本文介绍了试图安装cx_Oracle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Python新手,想学习它,但也希望使用cx_Oracle来访问Oracle。我已经安装了2个版本的Python,在最新版本(3.1.2)上我收到错误


文件"< stdin>",第1行
安装cx_Oracle

^

语法错误:语法无效


请帮助

我已将cx_Oracle放在本地目录中,并将路径中的路径放入其中。我正在使用windows

解决方案

如果你做了二进制安装,你需要做的就是导入模块,如:

展开 | 选择 | Wrap | 行号


谢谢,但这就是我做的事情然后我得到了错误


我可以像领先的空格字符一样简单in:

展开 | 选择 | Wrap | 行号

I''m new to Python and would like to learn it but also want to use cx_Oracle to access Oracle. I''ve installed 2 versions of Python and on the latest version (3.1.2) I get the error

File "<stdin>", line 1
install cx_Oracle
^
SyntaxError: invalid syntax

Please Help
I''ve put the cx_Oracle in the local dirctory and the path to it in the path. I''m using windows

解决方案

If you did a binary installation, all you need to do is import the module as in:

Expand|Select|Wrap|Line Numbers


Thanks but thats what I do and then I get the error


I could be something as simple as a leading space character as in:

Expand|Select|Wrap|Line Numbers


这篇关于试图安装cx_Oracle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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