0
試圖運行使用cx_Oracle
的腳本時,我得到一個ImportError
。cx_Oracle ImportError錯誤原因:找不到圖像
./runtests.py <args here>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/smeatonj/Development/.virtualenvs/djangopy3/lib/python3.5/site-packages/cx_Oracle.cpython-35m-darwin.so, 2): Library not loaded: @rpath/libclntsh.dylib.12.1
Referenced from: /Users/smeatonj/Development/.virtualenvs/djangopy3/lib/python3.5/site-packages/cx_Oracle.cpython-35m-darwin.so
Reason: image not found
其他建議建議出口LD_LIBRARY_PATH
我已經做了。當我打開一個python shell並嘗試導入cx_Oracle
時,它工作正常。