MacBook Pro M1上的AutoGluon安装失败

发布于 2025-02-01 14:30:11 字数 2005 浏览 3 评论 0原文

我正在尝试通过PIP(PIP安装AutoGluon)安装AutoGluon,并发生以下错误。我的Python版本是3.9.7。

每个人都应该如何解决此错误?非常感谢。

我的错误,请检查

Collecting jsonschema
  Downloading jsonschema-4.5.1-py3-none-any.whl (72 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.9/72.9 kB 2.5 MB/s eta 0:00:00
Collecting grpcio>=1.28.1
  Downloading grpcio-1.46.3.tar.gz (21.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.8/21.8 MB 348.0 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/tmp/pip-install-gxevalj2/grpcio_b79061648510414e81b2c5a6c0762166/setup.py", line 257, in <module>
          if check_linker_need_libatomic():
        File "/private/tmp/pip-install-gxevalj2/grpcio_b79061648510414e81b2c5a6c0762166/setup.py", line 213, in check_linker_need_libatomic
          cpp_test = subprocess.Popen(
        File "/Users/liuruiyi/miniforge3/envs/py39/lib/python3.9/subprocess.py", line 951, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/Users/liuruiyi/miniforge3/envs/py39/lib/python3.9/subprocess.py", line 1696, in _execute_child
          and os.path.dirname(executable)
        File "/Users/liuruiyi/miniforge3/envs/py39/lib/python3.9/posixpath.py", line 152, in dirname
          p = os.fspath(p)
      TypeError: expected str, bytes or os.PathLike object, not list
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

I am trying to install autogluon via pip (pip install autogluon) and the following error occurs. My Python version is 3.9.7.

How should everybody solve this error? Thank you very much.

my error, please check

Collecting jsonschema
  Downloading jsonschema-4.5.1-py3-none-any.whl (72 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.9/72.9 kB 2.5 MB/s eta 0:00:00
Collecting grpcio>=1.28.1
  Downloading grpcio-1.46.3.tar.gz (21.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.8/21.8 MB 348.0 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/tmp/pip-install-gxevalj2/grpcio_b79061648510414e81b2c5a6c0762166/setup.py", line 257, in <module>
          if check_linker_need_libatomic():
        File "/private/tmp/pip-install-gxevalj2/grpcio_b79061648510414e81b2c5a6c0762166/setup.py", line 213, in check_linker_need_libatomic
          cpp_test = subprocess.Popen(
        File "/Users/liuruiyi/miniforge3/envs/py39/lib/python3.9/subprocess.py", line 951, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/Users/liuruiyi/miniforge3/envs/py39/lib/python3.9/subprocess.py", line 1696, in _execute_child
          and os.path.dirname(executable)
        File "/Users/liuruiyi/miniforge3/envs/py39/lib/python3.9/posixpath.py", line 152, in dirname
          p = os.fspath(p)
      TypeError: expected str, bytes or os.PathLike object, not list
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文