版本必須對應:win7 64bit、Oracle client 64bit、python2.7 64bit、cx_Oracle才能安裝成功、
1. 安裝Oracle client 64bit、設置ORACLE_HOME(安裝路徑)、TNS_ADMIN(tns.ora路徑)
2.pip install cx_Oracle,如有超時等情況可以使用國內鏡像 如:pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ cx_Oracle
3.期間如有提示,還需要安裝vc++ for python 2.7...
最後大功告成
Successfully built cx-Oracle
Installing collected packages: cx-Oracle
Successfully installed cx-Oracle-5.2.1