Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装PaddleSpeech相关问题讨论(Windows) #1397

Closed
qibinran opened this issue Jan 27, 2022 Discussed in #1195 · 40 comments
Closed

安装PaddleSpeech相关问题讨论(Windows) #1397

qibinran opened this issue Jan 27, 2022 Discussed in #1195 · 40 comments
Assignees

Comments

@qibinran
Copy link

无论使用怎样的安装方法,所需的C++也安装了,总是报错:

Failed to build pyworld webrtcvad bottleneck
ERROR: Could not build wheels for pyworld, bottleneck, which is required to install pyproject.toml-based projects

网上找了各种方法都不成功,诚心求教!

@Jackwaterveg
Copy link
Contributor

请问有没有完整的编译报错信息截图?

@qibinran
Copy link
Author

您好!非常感谢您回复!

有截图,如下:
image
image

文字版如下:
Building wheel for pyworld (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\dell\appdata\local\programs\python\python38\python.exe' 'c:\users\dell\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\dell\AppData\Local\Temp\tmpwt42ry1q'
cwd: C:\Users\dell\AppData\Local\Temp\pip-install-q9lvkotl\pyworld_249e0598526848599832e86ea0e5bfca
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pyworld
copying pyworld_init_.py -> build\lib.win-amd64-3.8\pyworld
running build_ext
C:\Users\dell\AppData\Local\Temp\pip-build-env-07m53pm1\overlay\Lib\site-packages\setuptools\dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for pyworld
Building wheel for webrtcvad (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\dell\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\dell\AppData\Local\Temp\pip-install-q9lvkotl\webrtcvad_a20fb6b5bcb249b1bb4a3ec6e4df9735\setup.py'"'"'; file='"'"'C:\Users\dell\AppData\Local\Temp\pip-install-q9lvkotl\webrtcvad_a20fb6b5bcb249b1bb4a3ec6e4df9735\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\dell\AppData\Local\Temp\pip-wheel-mkhtbxee'
cwd: C:\Users\dell\AppData\Local\Temp\pip-install-q9lvkotl\webrtcvad_a20fb6b5bcb249b1bb4a3ec6e4df9735
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying webrtcvad.py -> build\lib.win-amd64-3.8
running build_ext
building '_webrtcvad' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

ERROR: Failed building wheel for webrtcvad
Running setup.py clean for webrtcvad
Building wheel for bottleneck (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\dell\appdata\local\programs\python\python38\python.exe' 'c:\users\dell\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\dell\AppData\Local\Temp\tmpwve_e3kf'
cwd: C:\Users\dell\AppData\Local\Temp\pip-install-q9lvkotl\bottleneck_25894c29468b4cd2a8dd1f4ed0454eaf
Complete output (40 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\bottleneck
copying bottleneck_pytesttester.py -> build\lib.win-amd64-3.8\bottleneck
copying bottleneck_version.py -> build\lib.win-amd64-3.8\bottleneck
copying bottleneck_init_.py -> build\lib.win-amd64-3.8\bottleneck
creating build\lib.win-amd64-3.8\bottleneck\benchmark
copying bottleneck\benchmark\autotimeit.py -> build\lib.win-amd64-3.8\bottleneck\benchmark
copying bottleneck\benchmark\bench.py -> build\lib.win-amd64-3.8\bottleneck\benchmark
copying bottleneck\benchmark\bench_detailed.py -> build\lib.win-amd64-3.8\bottleneck\benchmark
copying bottleneck\benchmark_init_.py -> build\lib.win-amd64-3.8\bottleneck\benchmark
creating build\lib.win-amd64-3.8\bottleneck\slow
copying bottleneck\slow\move.py -> build\lib.win-amd64-3.8\bottleneck\slow
copying bottleneck\slow\nonreduce.py -> build\lib.win-amd64-3.8\bottleneck\slow
copying bottleneck\slow\nonreduce_axis.py -> build\lib.win-amd64-3.8\bottleneck\slow
copying bottleneck\slow\reduce.py -> build\lib.win-amd64-3.8\bottleneck\slow
copying bottleneck\slow_init_.py -> build\lib.win-amd64-3.8\bottleneck\slow
creating build\lib.win-amd64-3.8\bottleneck\src
copying bottleneck\src\bn_config.py -> build\lib.win-amd64-3.8\bottleneck\src
copying bottleneck\src\bn_template.py -> build\lib.win-amd64-3.8\bottleneck\src
copying bottleneck\src_init_.py -> build\lib.win-amd64-3.8\bottleneck\src
creating build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\input_modification_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\list_input_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\memory_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\move_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\nonreduce_axis_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\nonreduce_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\reduce_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\scalar_input_test.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests\util.py -> build\lib.win-amd64-3.8\bottleneck\tests
copying bottleneck\tests_init_.py -> build\lib.win-amd64-3.8\bottleneck\tests
UPDATING build\lib.win-amd64-3.8\bottleneck/_version.py
set build\lib.win-amd64-3.8\bottleneck/_version.py to '1.3.2'
running build_ext
running config
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for bottleneck
Failed to build pyworld webrtcvad bottleneck
ERROR: Could not build wheels for pyworld, bottleneck, which is required to install pyproject.toml-based projects

辛苦您了!

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@qibinran
Copy link
Author

C++桌面开发安装时已经勾选,不知怎么还是报错呢?

image

@Jackwaterveg
Copy link
Contributor

@qibinran 本质上还是没有安装成功visual studio,C++没有执行编译,所以报错了。 装好visual studio有没有重启电脑?

@Jackwaterveg
Copy link
Contributor

看一下命令行使用 g++ 是否会有这个命令,还是找不到这个命令。

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@Jackwaterveg
Copy link
Contributor

@qibinran 有可能是cl.exe没有找到的问题,试试看这个 https://blog.csdn.net/qq_42868008/article/details/81987852

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@qibinran
Copy link
Author

g++运行截图:
5

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@qibinran
Copy link
Author

找了各种方案,bottleneck算是单独硬装上去了,但是另两个无论如何装不上去。VS C++的各种方案也试了,都没有效果。cl.exe已经按csdn博客上说的添加了环境变量。现在剩下的两个还是报错如下:

3
4
5
6
1
2

报错的篇幅比原来更长了。

@Jackwaterveg
Copy link
Contributor

g++没有问题。can not run rc.exe 应该是系统找不到 rc.exe文件。http://www.jyguagua.com/?p=10049 这里有类似问题的解决方法。

@Jackwaterveg
Copy link
Contributor

出现这个问题基本都是C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin 缺少了rc.exe 和 rcdll.dll两个文件。你可以在c盘搜所这两个文件,复制过去

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@yt605155624
Copy link
Collaborator

安装对应高版本的 Visual C++ 即可

@Jackwaterveg
Copy link
Contributor

@qibinran 前一条回复没有发出截图

@Jackwaterveg
Copy link
Contributor

@qibinran 是现在还是出现 error: Microsoft Visual C++ 14.0 or greater is required这个问题吗?

@Jackwaterveg
Copy link
Contributor

可以试试看网上的办法:https://blog.csdn.net/weixin_40547993/article/details/89399825

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@Jackwaterveg
Copy link
Contributor

没事,你这里问题确实比较罕见。试试直接安装build tools。 还不可以的话,根据个人经验,试试安装git bash。在git bash的命令行中进行安装。

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@Jackwaterveg
Copy link
Contributor

可以明天加一下微信群

@qibinran
Copy link
Author

那太好了,盼望加微信群,非常感谢!

@Jackwaterveg
Copy link
Contributor

加群方式见 repo首页

@qibinran
Copy link
Author

image
image

@yt605155624
Copy link
Collaborator

请确认各个软件的版本是否符合,并且确认是否正确地配置了环境变量

@qibinran
Copy link
Author

qibinran commented Jan 27, 2022 via email

@qibinran
Copy link
Author

qibinran commented Jan 28, 2022 via email

@qibinran
Copy link
Author

安装对应高版本的 Visual C++ 即可

三个版本的VS C++都装了,还是不行啊。
VS C++ 14.0以上的就可以,从前面的回复来看只需要14.0版本就行,更高版本的文件和路径与14.0的不一样,安装时反而找不到。

@qibinran
Copy link
Author

qibinran commented Jan 28, 2022 via email

@yt605155624
Copy link
Collaborator

@qibinran
Copy link
Author

qibinran commented Jan 28, 2022 via email

@qibinran
Copy link
Author

加群方式见 repo首页

谢谢回复!不好意思我不知道repo在哪儿找,paddle别的安装说明里留的二维码联络人我已加了,但是她一直没加我到技术群。可否给我我一个repo的网址,或加群的二维码,添麻烦了,非常感谢!

https://github.com/PaddlePaddle/PaddleSpeech

您好!您说的加群方式就是下面这个吧,我前几天就加了,昨天和今天又请她加我进群,但是一直没有回复。我的微信:ranqibin666,可否帮助我加一下呢?非常感谢!

image

@qibinran
Copy link
Author

已经加入群了,感激不尽!

@qibinran
Copy link
Author

qibinran commented Jan 28, 2022 via email

@Jackwaterveg
Copy link
Contributor

好的呀 : )

@yt605155624 yt605155624 pinned this issue May 25, 2022
@zh794390558
Copy link
Collaborator

nltk_data 下载参看: https://blog.csdn.net/qq_43140627/article/details/103895811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants