首页 > 解决方案 > McAfee Endpoint 安全警报“系统资源不足”在 Python 中使用 cx_Oracle:

问题描述

我在 Python 中使用了一段时间的 Cx_oracle,但我最近无法在 Python 中导入 cx_oracle 并收到此错误:

ImportError: DLL load failed: Insufficient system resources exist to complete the requested service.

此外,我收到 McAfee 安全警报,如下所示:

在此处输入图像描述

我重新安装了 cx_oracle 几次,但没有成功。有什么建议么?

标签: pythonwindowscx-oraclemcafee

解决方案


最简单的答案是使用cx_Oracle以下命令的旧版本:

pip uninstall cx_Oracle
pip install -Iv cx_Oracle=="enter the version number here"

原因是 McAfee 可能未与最新版本的 cx_Oracle 或任何其他 Python 模块集成。

还有其他几种解决方案,包括:

  1. 卸载 McAfee 或您拥有的任何防病毒软件
  2. 更新驱动程序
  3. 扫描磁盘驱动程序以解决问题
  4. 修改注册表

推荐阅读