我找到的解决方案。在我们之前的项目目录中,我们有一个名为cx_Oracle.pyd
的文件以及instantclient_12_1
的Instant Client 文件夹。只要存在这两件事,我们的目录似乎就可以在我们所有的远程机器上工作,即使有问题的机器除了项目目录中的文件之外没有在 venv 或 Instant Client 安装中安装 cx_Oracle。
于是在venv中Anaconda安装cx_Oracle的位置的新机器上,我找到了一个叫cx_Oracle.cp39-win_amd64.pyd
的文件,把这个文件移到我的项目目录下,突然让cx_Oracle能够识别Instant Client文件夹中的dll ,并且我能够毫无问题地访问我的数据库。我不知道为什么会这样,我会尝试进一步挖掘以找出原因,但我将把它留在这里以防其他人遇到类似问题。
- ModuleNotFoundError cx_oracle module oracle namedmodulenotfounderror cx_oracle module oracle modulenotfounderror module named 39 modulenotfounderror watchdog module named modulenotfounderror module kornia named modulenotfounderror packaging module named modulenotfounderror module pandas named modulenotfounderror module infer named modulenotfounderror module named torch modulenotfounderror module lanms named modulenotfounderror办法module named