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

配置环境时发生问题 #22

Open
ms903x1 opened this issue Jul 4, 2022 · 1 comment
Open

配置环境时发生问题 #22

ms903x1 opened this issue Jul 4, 2022 · 1 comment

Comments

@ms903x1
Copy link

ms903x1 commented Jul 4, 2022

py版本3.8.12
使用pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple配置环境后报错:
INFO: pip is looking at multiple versions of to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of paddlespeech to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 2) and -r requirements.txt (line 4) because these package versions have conflicting dependencies.

The conflict is caused by:
paddlespeech 1.0.1 depends on librosa==0.8.1
spleeter 2.3.0 depends on librosa==0.8.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
paddlespeech和 spleeter的依赖包好像有冲突,requirements.txt里删去版本指定也无法解决

删去后安装提示错误:
Building wheel for pyworld (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /home/ms903/anaconda3/envs/paddlespeech/bin/python /home/ms903/anaconda3/envs/paddlespeech/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpgy3dj7qy
cwd: /tmp/pip-install-mzvzbcwv/pyworld_d510b0c069644641b9af4c4c7c4bbf70
Complete output (19 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/pyworld
copying pyworld/init.py -> build/lib.linux-x86_64-cpython-38/pyworld
running build_ext
skipping 'pyworld/pyworld.cpp' Cython extension (up-to-date)
building 'pyworld.pyworld' extension
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/lib
creating build/temp.linux-x86_64-cpython-38/lib/World
creating build/temp.linux-x86_64-cpython-38/lib/World/src
creating build/temp.linux-x86_64-cpython-38/pyworld
gcc -pthread -B /home/ms903/anaconda3/envs/paddlespeech/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilib/World/src -I/tmp/pip-build-env-lvkrx6p6/overlay/lib/python3.8/site-packages/numpy/core/include -I/home/ms903/anaconda3/envs/paddlespeech/include/python3.8 -c lib/World/src/cheaptrick.cpp -o build/temp.linux-x86_64-cpython-38/lib/World/src/cheaptrick.o
/tmp/pip-build-env-lvkrx6p6/overlay/lib/python3.8/site-packages/setuptools/dist.py:771: 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: command 'gcc' failed: No such file or directory

ERROR: Failed building wheel for pyworld
Building wheel for webrtcvad (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/ms903/anaconda3/envs/paddlespeech/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mzvzbcwv/webrtcvad_94b8d3d2fcb4455cb4247afbf2e9db6a/setup.py'"'"'; file='"'"'/tmp/pip-install-mzvzbcwv/webrtcvad_94b8d3d2fcb4455cb4247afbf2e9db6a/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 /tmp/pip-wheel-cq86shd8
cwd: /tmp/pip-install-mzvzbcwv/webrtcvad_94b8d3d2fcb4455cb4247afbf2e9db6a/
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying webrtcvad.py -> build/lib.linux-x86_64-3.8
running build_ext
building '_webrtcvad' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/cbits
creating build/temp.linux-x86_64-3.8/cbits/webrtc
creating build/temp.linux-x86_64-3.8/cbits/webrtc/common_audio
creating build/temp.linux-x86_64-3.8/cbits/webrtc/common_audio/signal_processing
creating build/temp.linux-x86_64-3.8/cbits/webrtc/common_audio/vad
gcc -pthread -B /home/ms903/anaconda3/envs/paddlespeech/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWEBRTC_POSIX -Icbits -I/home/ms903/anaconda3/envs/paddlespeech/include/python3.8 -c cbits/pywebrtcvad.c -o build/temp.linux-x86_64-3.8/cbits/pywebrtcvad.o
error: command 'gcc' failed: No such file or directory

ERROR: Failed building wheel for webrtcvad
Running setup.py clean for webrtcvad
Failed to build pyworld webrtcvad
ERROR: Could not build wheels for pyworld which use PEP 517 and cannot be installed directly

@journeyzx
Copy link

image
这样就好了

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

No branches or pull requests

2 participants