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

pip install av=8.0.3报错 #704

Open
joanmm851029 opened this issue Oct 10, 2024 · 1 comment
Open

pip install av=8.0.3报错 #704

joanmm851029 opened this issue Oct 10, 2024 · 1 comment
Assignees

Comments

@joanmm851029
Copy link

报错信息如下
Building wheels for collected packages: av
Building wheel for av (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/av
copying av/deprecation.py -> build/lib.linux-x86_64-3.7/av
copying av/init.py -> build/lib.linux-x86_64-3.7/av
copying av/datasets.py -> build/lib.linux-x86_64-3.7/av
copying av/main.py -> build/lib.linux-x86_64-3.7/av
creating build/lib.linux-x86_64-3.7/av/subtitles
copying av/subtitles/init.py -> build/lib.linux-x86_64-3.7/av/subtitles
creating build/lib.linux-x86_64-3.7/av/data
copying av/data/init.py -> build/lib.linux-x86_64-3.7/av/data
creating build/lib.linux-x86_64-3.7/av/video
copying av/video/init.py -> build/lib.linux-x86_64-3.7/av/video
creating build/lib.linux-x86_64-3.7/av/container
copying av/container/init.py -> build/lib.linux-x86_64-3.7/av/container
creating build/lib.linux-x86_64-3.7/av/sidedata
copying av/sidedata/init.py -> build/lib.linux-x86_64-3.7/av/sidedata
creating build/lib.linux-x86_64-3.7/av/filter
copying av/filter/init.py -> build/lib.linux-x86_64-3.7/av/filter
creating build/lib.linux-x86_64-3.7/av/codec
copying av/codec/init.py -> build/lib.linux-x86_64-3.7/av/codec
creating build/lib.linux-x86_64-3.7/av/audio
copying av/audio/init.py -> build/lib.linux-x86_64-3.7/av/audio
running build_ext
running config
PyAV: 8.0.3 (unknown commit)
Python: 3.7.4 (default, Aug 13 2019, 20:35:49) \n[GCC 7.3.0]
platform: Linux-5.4.0-139-generic-x86_64-with-debian-stretch-sid
extension_extra:
include_dirs: [b'include']
libraries: []
library_dirs: []
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.3
PYAV_VERSION_STR="8.0.3"
Could not find libavformat with pkg-config.
Could not find libavcodec with pkg-config.
Could not find libavdevice with pkg-config.
Could not find libavutil with pkg-config.
Could not find libavfilter with pkg-config.
Could not find libswscale with pkg-config.
Could not find libswresample with pkg-config.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for av
Running setup.py clean for av
Failed to build av
Installing collected packages: av, scipy, opencv-python, ffmpeg-python, decord
Running setup.py install for av ... error
error: subprocess-exited-with-error

× Running setup.py install for av did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/av
copying av/deprecation.py -> build/lib.linux-x86_64-3.7/av
copying av/init.py -> build/lib.linux-x86_64-3.7/av
copying av/datasets.py -> build/lib.linux-x86_64-3.7/av
copying av/main.py -> build/lib.linux-x86_64-3.7/av
creating build/lib.linux-x86_64-3.7/av/subtitles
copying av/subtitles/init.py -> build/lib.linux-x86_64-3.7/av/subtitles
creating build/lib.linux-x86_64-3.7/av/data
copying av/data/init.py -> build/lib.linux-x86_64-3.7/av/data
creating build/lib.linux-x86_64-3.7/av/video
copying av/video/init.py -> build/lib.linux-x86_64-3.7/av/video
creating build/lib.linux-x86_64-3.7/av/container
copying av/container/init.py -> build/lib.linux-x86_64-3.7/av/container
creating build/lib.linux-x86_64-3.7/av/sidedata
copying av/sidedata/init.py -> build/lib.linux-x86_64-3.7/av/sidedata
creating build/lib.linux-x86_64-3.7/av/filter
copying av/filter/init.py -> build/lib.linux-x86_64-3.7/av/filter
creating build/lib.linux-x86_64-3.7/av/codec
copying av/codec/init.py -> build/lib.linux-x86_64-3.7/av/codec
creating build/lib.linux-x86_64-3.7/av/audio
copying av/audio/init.py -> build/lib.linux-x86_64-3.7/av/audio
running build_ext
running config
PyAV: 8.0.3 (unknown commit)
Python: 3.7.4 (default, Aug 13 2019, 20:35:49) \n[GCC 7.3.0]
platform: Linux-5.4.0-139-generic-x86_64-with-debian-stretch-sid
extension_extra:
include_dirs: [b'include']
libraries: []
library_dirs: []
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.3
PYAV_VERSION_STR="8.0.3"
Could not find libavformat with pkg-config.
Could not find libavcodec with pkg-config.
Could not find libavdevice with pkg-config.
Could not find libavutil with pkg-config.
Could not find libavfilter with pkg-config.
Could not find libswscale with pkg-config.
Could not find libswresample with pkg-config.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> av

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

求解决方案。

@joanmm851029 joanmm851029 changed the title import av 报错 pip install av=8.0.3报错 Oct 16, 2024
@omp009
Copy link

omp009 commented Nov 20, 2024

encountering same issue

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

3 participants