MacBook Pro M1上的AutoGluon安装失败
我正在尝试通过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.
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论