|
python3.6 64位,oracle 11.2 64位,命令窗口运行结果正常,pycharm里面运行就出错,谁知道为什么呀?
命令窗口:运行正常
D:\py\venv\Scripts>python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cx_Oracle
>>> db = cx_Oracle.connect('jzg_port/syjbq@alpha')
>>> print(db)
<cx_Oracle.Connection to jzg_port@alpha>
>>>
pycharm:运行报错
import cx_Oracle
db = cx_Oracle.connect('jzg_port/syjbq@alpha')
print(db)
运行结果:[size=21.3333px]raceback (most recent call last): File "D:/py/excel/read_excel/read_excel.py", line 6, in <module> db = cx_Oracle.connect('jzg_port/syjbq@alpha')cx_Oracle.DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: "The specified module could not be found".
|
-
命令窗口
-
pycharm
|