系统:window7
问题背景:
使用pip install cx_Oracle时提示:distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation
解决方法:
1. 需要使用.exe文件进行安装。打开网址https://pypi.python.org/pypi/cx_Oracle,在页面选择适合自己操作系统、Python版本、Oracle版本的链接下载即可。
2. 在文件下载路径中进入cmd,使用命令:pip install cx_Oracle-6.0rc1-cp27-cp27m-win_amd64.whl
3. 安装完成