无法在VSCode上的Jupyter笔记本中使用cx_Oracle进行连接

问题描述 投票:0回答:1

当我尝试在VSCode上的Jupyter笔记本中执行单元时,我不断收到以下错误

con = cx_Oracle.connect("/@DB")

DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help

但是当我在Jupyter Lab中运行它时,同样可以正常工作。

python-3.x visual-studio-code jupyter-notebook vscode-settings
1个回答
0
投票

有时,某些东西在某些IDE中不起作用,我不确定您的问题是什么,我建议使用anaconda(或者也许是spyder),到目前为止,它已经对我有用,但是我不了解cx_Oracle 。

© www.soinside.com 2019 - 2024. All rights reserved.