plaidml-setup 在 Windows 上无法识别,即使安装成功后也是如此

plaidml-setup is not recognized on Windows, even after successful installation

我按照 the documentation from VertexAI 上的所有步骤进行操作,但是在安装 plaidml-keras 之后,当我尝试 运行 设置时,它会抛出错误。

C:\Users\anura>pip install plaidml-keras
Requirement already satisfied: plaidml-keras in c:\python39\lib\site-packages (0.7.0)
Requirement already satisfied: six in c:\python39\lib\site-packages (from plaidml-keras) (1.15.0)
Requirement already satisfied: keras==2.2.4 in c:\python39\lib\site-packages (from plaidml-keras) (2.2.4)
Requirement already satisfied: plaidml in c:\python39\lib\site-packages (from plaidml-keras) (0.7.0)
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\python39\lib\site-packages (from keras==2.2.4->plaidml-keras) (1.1.2)
Requirement already satisfied: scipy>=0.14 in c:\python39\lib\site-packages (from keras==2.2.4->plaidml-keras) (1.6.2)
Requirement already satisfied: numpy>=1.9.1 in c:\python39\lib\site-packages (from keras==2.2.4->plaidml-keras) (1.20.2)
Requirement already satisfied: keras-applications>=1.0.6 in c:\python39\lib\site-packages (from keras==2.2.4->plaidml-keras) (1.0.8)
Requirement already satisfied: pyyaml in c:\python39\lib\site-packages (from keras==2.2.4->plaidml-keras) (5.4.1)
Requirement already satisfied: h5py in c:\python39\lib\site-packages (from keras==2.2.4->plaidml-keras) (3.2.1)
Requirement already satisfied: cffi in c:\python39\lib\site-packages (from plaidml->plaidml-keras) (1.14.5)
Requirement already satisfied: enum34>=1.1.6 in c:\python39\lib\site-packages (from plaidml->plaidml-keras) (1.1.10)
Requirement already satisfied: pycparser in c:\python39\lib\site-packages (from cffi->plaidml->plaidml-keras) (2.20)

C:\Users\anura>plaidml-setup
'plaidml-setup' is not recognized as an internal or external command,
operable program or batch file.

请有人帮我解决这个问题。

所以,即使在多次重新安装之后,我也没有找到解决原始问题的方法。最后,我卸载了Python,安装了Anaconda3。通过 Anaconda 提示安装 plaidml 有效。可悲的是,我的 GPU 太旧了,甚至无法识别。 AMD Radeon HD 7870.

但是嘿,如果这个 post 的任何未来 reader 有同样的问题,请尝试 Anaconda prompt。无论如何,您很可能已经安装了它。快乐编码。