xszyou / Fay

Fay is an open-source digital human framework integrating language models and digital characters. It offers retail, assistant, and agent versions for diverse applications like virtual shopping guides, broadcasters, assistants, waiters, teachers, and voice or text-based mobile assistants.
GNU General Public License v3.0
9.33k stars 1.81k forks source link

mac M1 pip install ./FunASR 安装报错 #37

Open yangyuanwei opened 1 year ago

yangyuanwei commented 1 year ago

(base) yyw@yywdeMac-mini Fay % pip install ./FunASR Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing ./FunASR Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [30 lines of output] /Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/Users/yyw/Desktop/QuWan/AIProject/Fay/FunASR/setup.py", line 125, in setup( File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/init.py", line 86, in setup _install_setup_requires(attrs) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/init.py", line 80, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/dist.py", line 874, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/Users/yyw/miniforge3/lib/python3.10/site-packages/pkg_resources/init.py", line 789, in resolve dist = best[req.key] = env.best_match( File "/Users/yyw/miniforge3/lib/python3.10/site-packages/pkg_resources/init.py", line 1075, in best_match return self.obtain(req, installer) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/pkg_resources/init.py", line 1087, in obtain return installer(requirement) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/dist.py", line 944, in fetch_build_egg return fetch_build_egg(self, req) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/installer.py", line 87, in fetch_build_egg wheel.install_as_egg(dist_location) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/wheel.py", line 110, in install_as_egg self._install_as_egg(destination_eggdir, zf) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/wheel.py", line 118, in _install_as_egg self._convert_metadata(zf, destination_eggdir, dist_info, egg_info) File "/Users/yyw/miniforge3/lib/python3.10/site-packages/setuptools/wheel.py", line 162, in _convert_metadata os.rename(dist_info, egg_info) OSError: [Errno 66] Directory not empty: '/Users/yyw/Desktop/QuWan/AIProject/Fay/FunASR/.eggs/numpy-1.21.3-py3.10-macosx-11.0-arm64.egg/numpy-1.21.3.dist-info' -> '/Users/yyw/Desktop/QuWan/AIProject/Fay/FunASR/.eggs/numpy-1.21.3-py3.10-macosx-11.0-arm64.egg/EGG-INFO' [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.

kangkangding commented 1 year ago

Has the problem been solved? I have encountered the same problem

HuaYuXiao commented 12 months ago

The following post may help you: https://stackoverflow.com/questions/77439288/encountered-error-while-generating-package-metadata