导入 P4API 在 win 64、python 3.5.1 上失败

use*_*497 5 python p4python

运行 import P4 时出现以下错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python35\lib\site-packages\P4.py", line 410, in <module>
    import P4API
ImportError: DLL load failed: The specified module could not be found.
Run Code Online (Sandbox Code Playgroud)

我在网上查看但找不到有帮助的东西。

Eri*_*icB 0

对于同一个问题,我经历过略有不同的措辞。

 File "C:\Program Files\Python311\Lib\site-packages\P4.py", line 413, in <module>
    import P4API
ImportError: DLL load failed while importing P4API: The specified module could not be found.
Run Code Online (Sandbox Code Playgroud)

要解决此问题,请确保您已安装 P4V.exe。安装 P4V 解决了我在 Windows 7 和 Windows 11 上的问题。