如何在 macOS 上安装 Plaid ML

如何在 macOS 上安装 Plaid ML

因此,我尝试在 macOS 上安装 Plaid ML(这样我就可以在 GPU 上使用张量流进行机器学习)。使用安装pip install -U plaidml-keras成功,但当我运行时plaidml-setup(如说明所述),我收到以下错误:

Traceback (most recent call last):
  File "/usr/local/bin/plaidml-setup", line 6, in <module>
    from plaidml.plaidml_setup import main
  File "/usr/local/lib/python3.7/site-packages/plaidml/__init__.py", line 50, in <module>
    import plaidml.settings
  File "/usr/local/lib/python3.7/site-packages/plaidml/settings.py", line 33, in <module>
    _setup_config('PLAIDML_EXPERIMENTAL_CONFIG', 'experimental.json')
  File "/usr/local/lib/python3.7/site-packages/plaidml/settings.py", line 30, in _setup_config
    'Could not find PlaidML configuration file: "{}".'.format(filename))
plaidml.exceptions.PlaidMLError: Could not find PlaidML configuration file: "experimental.json".

我使用的说明是https://github.com/plaidml/plaidml/blob/master/docs/install.rst#macos

我没有做虚拟环境部分,因为我认为开销不值得。

答案1

您似乎尚未设置环境路径格子。 跟随在 StackOverflow 上发帖。

相关内容