前言
装置 pyav 踩得巨坑, 重新整理了装置过程。如果有用请点个赞
。
装置筹备
- Visual Studio build tools
- python
- ffmpeg
装置python
- 官网下载间接装置
-
降级
pip
<code class="shell">pip3 install --upgrade pip # 如果降级失败 pip3会被卸载 # 修复 pip3 Python -m ensurepip # 应用python再次降级 python -m pip install --upgrade pip
装置ffmpeg
- 下载dev版本
- 把ffmpeg解压到任意目录
- 期待须要增加环境变量
装置Visual Studio build tools
- 装置实现
- 增加 c++桌面开发
- 增加 vs 扩大开发
配置环境变量
path
## vs D:\software\VisualStudio2019\IDE\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\ ## ffmpeg D:\Python\ffmpeg-N-104473-g9d4989f2e1-win64-gpl-shared\bin
INCLUDE
## vs D:\software\VisualStudio2019\IDE\VC\Tools\MSVC\14.16.27023\include\ ## ffmpeg D:\Python\ffmpeg-N-104473-g9d4989f2e1-win64-gpl-shared\include
LIB
## vs D:\software\VisualStudio2019\IDE\VC\Tools\MSVC\14.16.27023\lib\x64\ ## ffmpeg D:\Python\ffmpeg-N-104473-g9d4989f2e1-win64-gpl-shared\lib
装置 pyav
pip3 install av
呈现 _PyGen_Send
Py 3.10当初提供了一个新PyIter_Send()函数来替换 Cython 以后外部提供的一些代码。目前还不分明是否_PyGen_Send()会持续隐没(并且还没有公布没有它的版本),然而咱们应该切换到 Py3.10+ 中的新性能(并且可能在旧版本中应用咱们本人的正本) .