问题描述
我在 Python 中使用 Cx_oracle 有一段时间了,但我最近无法在 Python 中导入 cx_oracle 并出现此错误:
ImportError: DLL load Failed: Insufficient system resources exist to complete the requested service.
此外,我收到 McAfee 安全警报,如下所示:
我重新安装了 cx_oracle 几次,但没有奏效。有什么建议吗?
解决方法
最简单的答案是使用以下命令使用旧版本的 cx_Oracle
:
pip uninstall cx_Oracle
pip install -Iv cx_Oracle=="enter the version number here"
原因是 McAfee 可能无法与最新版本的 cx_Oracle 或任何其他 Python 模块集成。
还有其他几种解决方案,包括:
- 卸载 McAfee 或您拥有的任何防病毒软件
- 更新驱动程序
- 扫描磁盘驱动程序以解决问题
- 修改注册表