0

面临与版本 2 PyGreSQL 相同的问题ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found,但在这种情况下,我可以看到 _pg.pyd 文件未在站点包中创建虚拟环境。

import pg
  File "c:\users\pmlp\.virtualenvs\qc-scheduling-nfxvviij\lib\site-packages\pgdb.py", line 68, in <module>
from _pg import *
ImportError: DLL load failed: The specified module could not be found.

知道如何创建它或为什么不创建它吗?

4

1 回答 1

0

我发现我只需要将 postgree 路径添加到用户路径:

set PATH=C:\Program Files\PostgreSQL\10\bin;%PATH% 
于 2019-04-25T08:45:48.367 回答