当我尝试在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中运行它时,同样可以正常工作。
有时,某些东西在某些IDE中不起作用,我不确定您的问题是什么,我建议使用anaconda(或者也许是spyder),到目前为止,它已经对我有用,但是我不了解cx_Oracle 。