我有这样的项目
<Project_folder>
|
+-- somefile1.py
+-- somefile2.py
...
+-- cx_Oracle.so
在我要做的一个文件里
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "cx_Oracle"))
import cx_Oracle
但后来在代码中
connection = cx_Oracle.connect(login, password, connection_string)
是踩错了
“module”对象没有“connect”属性
如何正确导入cx_Oracle.so?