这个系列(一二三四)最终安装失败
成功文章名《安装paddlespeech终章》
问题代码
Installing collected packages: paddlespeech Attempting uninstall: paddlespeech Found existing installation: paddlespeech 0.0.0 Uninstalling paddlespeech-0.0.0: Successfully uninstalled paddlespeech-0.0.0 Running setup.py develop for paddlespeech error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [144 lines of output] /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/dist.py:498: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/dist.py:498: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) __version__ = '0.0.0' __commit__ = '1b8ca706d6a8e0a8b97ee21d93314a245d777a69' write_version_py done running develop /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running egg_info writing paddlespeech.egg-info/PKG-INFO writing dependency_links to paddlespeech.egg-info/dependency_links.txt writing entry points to paddlespeech.egg-info/entry_points.txt writing requirements to paddlespeech.egg-info/requires.txt writing top-level names to paddlespeech.egg-info/top_level.txt reading manifest file 'paddlespeech.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'paddlespeech/t2s/exps/*.txt' adding license file 'LICENSE' writing manifest file 'paddlespeech.egg-info/SOURCES.txt' running build_ext Creating /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/paddlespeech.egg-link (link to .) Adding paddlespeech 0.0.0 to easy-install.pth file Installing paddlespeech script to /home/ww/miniconda3/envs/paddlesp/bin Installing paddlespeech_client script to /home/ww/miniconda3/envs/paddlesp/bin Installing paddlespeech_server script to /home/ww/miniconda3/envs/paddlesp/bin Installed /home/ww/git_house/PaddleSpeech Post Install... /bin/bash: /home/ww/miniconda3/envs/paddlesp/lib/libtinfo.so.6: no version information available (required by /bin/bash) apt update -y /bin/bash: /home/ww/miniconda3/envs/paddlesp/lib/libtinfo.so.6: no version information available (required by /bin/bash) WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 正在读取软件包列表... E: 无法打开锁文件 /var/lib/apt/lists/lock - open (13: 权限不够) E: 无法对目录 /var/lib/apt/lists/ 加锁 W: 用 unlink 删除文件 /var/cache/apt/pkgcache.bin 出错 - RemoveCaches (13: 权限不够) W: 用 unlink 删除文件 /var/cache/apt/srcpkgcache.bin 出错 - RemoveCaches (13: 权限不够) make: *** [Makefile:27:apt.done] 错误 100 /home/ww/git_house/PaddleSpeech/setup.py:107: CMD: make, Error: None Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/home/ww/git_house/PaddleSpeech/setup.py", line 332, in <module> setup(**setup_info, include_package_data=True) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup return distutils.core.setup(**attrs) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ww/git_house/PaddleSpeech/setup.py", line 170, in run self.execute(_post_install, (self.install_lib, ), msg="Post Install...") File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 339, in execute util.execute(func, args, msg, dry_run=self.dry_run) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/util.py", line 337, in execute func(*args) File "/home/ww/git_house/PaddleSpeech/setup.py", line 156, in _post_install check_call("make") File "/home/ww/git_house/PaddleSpeech/setup.py", line 110, in check_call raise e File "/home/ww/git_house/PaddleSpeech/setup.py", line 101, in check_call sp.check_call( File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2. /home/ww/git_house/PaddleSpeech/tools [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. Rolling back uninstall of paddlespeech Moving to /home/ww/miniconda3/envs/paddlesp/bin/paddlespeech from /tmp/pip-uninstall-igf5d2ys/paddlespeech Moving to /home/ww/miniconda3/envs/paddlesp/bin/paddlespeech_client from /tmp/pip-uninstall-igf5d2ys/paddlespeech_client Moving to /home/ww/miniconda3/envs/paddlesp/bin/paddlespeech_server from /tmp/pip-uninstall-igf5d2ys/paddlespeech_server Moving to /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/paddlespeech.egg-link from /tmp/pip-uninstall-_3ut9o_u/paddlespeech.egg-link error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [144 lines of output] /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/dist.py:498: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/dist.py:498: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) __version__ = '0.0.0' __commit__ = '1b8ca706d6a8e0a8b97ee21d93314a245d777a69' write_version_py done running develop /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running egg_info writing paddlespeech.egg-info/PKG-INFO writing dependency_links to paddlespeech.egg-info/dependency_links.txt writing entry points to paddlespeech.egg-info/entry_points.txt writing requirements to paddlespeech.egg-info/requires.txt writing top-level names to paddlespeech.egg-info/top_level.txt reading manifest file 'paddlespeech.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'paddlespeech/t2s/exps/*.txt' adding license file 'LICENSE' writing manifest file 'paddlespeech.egg-info/SOURCES.txt' running build_ext Creating /home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/paddlespeech.egg-link (link to .) Adding paddlespeech 0.0.0 to easy-install.pth file Installing paddlespeech script to /home/ww/miniconda3/envs/paddlesp/bin Installing paddlespeech_client script to /home/ww/miniconda3/envs/paddlesp/bin Installing paddlespeech_server script to /home/ww/miniconda3/envs/paddlesp/bin Installed /home/ww/git_house/PaddleSpeech Post Install... /bin/bash: /home/ww/miniconda3/envs/paddlesp/lib/libtinfo.so.6: no version information available (required by /bin/bash) apt update -y /bin/bash: /home/ww/miniconda3/envs/paddlesp/lib/libtinfo.so.6: no version information available (required by /bin/bash) WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 正在读取软件包列表... E: 无法打开锁文件 /var/lib/apt/lists/lock - open (13: 权限不够) E: 无法对目录 /var/lib/apt/lists/ 加锁 W: 用 unlink 删除文件 /var/cache/apt/pkgcache.bin 出错 - RemoveCaches (13: 权限不够) W: 用 unlink 删除文件 /var/cache/apt/srcpkgcache.bin 出错 - RemoveCaches (13: 权限不够) make: *** [Makefile:27:apt.done] 错误 100 /home/ww/git_house/PaddleSpeech/setup.py:107: CMD: make, Error: None Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/home/ww/git_house/PaddleSpeech/setup.py", line 332, in <module> setup(**setup_info, include_package_data=True) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup return distutils.core.setup(**attrs) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ww/git_house/PaddleSpeech/setup.py", line 170, in run self.execute(_post_install, (self.install_lib, ), msg="Post Install...") File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 339, in execute util.execute(func, args, msg, dry_run=self.dry_run) File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/site-packages/setuptools/_distutils/util.py", line 337, in execute func(*args) File "/home/ww/git_house/PaddleSpeech/setup.py", line 156, in _post_install check_call("make") File "/home/ww/git_house/PaddleSpeech/setup.py", line 110, in check_call raise e File "/home/ww/git_house/PaddleSpeech/setup.py", line 101, in check_call sp.check_call( File "/home/ww/miniconda3/envs/paddlesp/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2. /home/ww/git_house/PaddleSpeech/tools [end of output] note: This error originates from a subprocess, and is likely not a problem with pip.
chatgpt给的分析 从日志中看,安装过程中出现了一些问题。以下是日志中的关键信息: 在卸载 paddlespeech 时出现了一些警告,但卸载似乎是成功的。 在运行 python setup.py develop 时,出现了一系列警告,其中包括对一些过时配置的警告。这些警告通常是由 setuptools 库生成的,提醒开发者更新其项目以适应将来版本的变化。 在运行 make 命令时发生错误,导致安装失败。具体错误信息为 make: *** [Makefile:27:apt.done] 错误 100。 在尝试执行 apt update -y 命令时,由于权限问题而失败。 综合来看,可能的解决步骤包括: 确保你有足够的权限执行安装操作。你可以使用 sudo 命令来提升权限。 确保系统中安装了 make 工具,并且你有权限执行 make 命令。 如果你是在虚拟环境中进行安装,确保虚拟环境中的 Python 版本和依赖项满足项目的要求。 可能需要手动处理一些过时的配置,以适应将来版本的变化。 请注意,由于日志中的信息有限,这只是一个初步的分析。具体的解决方法可能需要更多的上下文信息,比如项目的详细信息和系统环境。
能看的出来权限不够的,所以需要sudo权限,这就超出了conda环境了(我有点害怕,但也没办法了)。
好了已经sudo重新安装了
下一篇安装paddlespeech(二)