megvii-research/megactor

安装失败

Closed this issue · 3 comments

在服务器上安装的时候报下面的错误,有没有人分析一下可能是什么原因?
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'

Pip subprocess error:
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-tiqmryer/deepspeed_b5c74bcf93264dae8197d11c45274a64/setup.py", line 100, in
cuda_major_ver, cuda_minor_ver = installed_cuda_version()
File "/tmp/pip-install-tiqmryer/deepspeed_b5c74bcf93264dae8197d11c45274a64/op_builder/builder.py", line 47, in installed_cuda_version
import torch.utils.cpp_extension
File "/dfs/data/miniconda/envs/megactor/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 25, in
from pkg_resources import packaging # type: ignore[attr-defined]
ImportError: cannot import name 'packaging' from 'pkg_resources' (/dfs/data/miniconda/envs/megactor/lib/python3.10/site-packages/pkg_resources/init.py)
[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.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

failed

CondaEnvException: Pip failed

好像是因为deepspeed这个包安装失败的原因,尝试了很多办法,目前还没安装成功

Deepspeed 是一个在训练时候使用的第三方包,如果只是使用Megactor的推理功能,可以不安装Deepspeed