遇到 ModuleNotFoundError: No module named 'cx_Oracle’问题 解决方法:安装cx_Oracle包
命令:
pip install cx_oracle
运行结果:
C:\Users\chol>pip install cx_oracle
Collecting cx_oracle
Downloading cx_Oracle-7.3.0-cp37-cp37m-win_amd64.whl (189 kB)
|████████████████████████████████| 189 kB 731 kB/s
Installing collected packages: cx-oracle
Successfully installed cx-oracle-7.3.0
mark一下,目前版本已经是7.3.0
网上看到很多是:cx_oracle=6.1版本。
之后import cx_Oracle 就可以
>>> import cx_Oracle
>>>