1、https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html#installing-cx-oracle-on-windows 執行更新或者安裝 cx_Oracle
python -m pip install cx_Oracle
python -m pip install cx_Oracle --upgrade
如果需要設置代理:
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
2、https://www.oracle.com/database/technologies/instant-client.html 下載客戶端



3、下載后加壓到就可以

4、配置環境變量
TNS_ADMIN :D:\Program Files\instantclient-basic-windows.x64-11.2.0.4.0\instantclient_11_2

5、復制\instantclient_11_2 文件下的所有dll文件到python根目錄下,搞定


