1. pip install cx_Oracle
2. 安裝oracle instantclient
https://www.oracle.com/database/technologies/instant-client/downloads.html
選擇合適的平臺
在windows平臺上將壓縮包解壓到某個目錄,然後將目錄添加到PATH中即可。
參考:
https://oracle.github.io/python-cx_Oracle/
https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html