这个系列(一二三四)最终安装失败

成功文章名《安装paddlespeech终章》

 

问题代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
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(二)
posted on   大风吹屁股  阅读(808)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南



点击右上角即可分享
微信分享提示