Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection bro

该问题可能是源的问题,我目前换了pip源进行解决。

Simple Indexicon-default.png?t=M3K6https://pypi.mirrors.ustc.edu.cn/simple/

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
我目前使用中科大的源进行下载

首先使用pip3 ,安装pip

pip3 install -i https://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn pip
Collecting pip
  Cache entry deserialization failed, entry ignored
  Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
    100% |████████████████████████████████| 1.7MB 942kB/s 
Installing collected packages: pip
Successfully installed pip-21.3.1
然后 安装av

 pip3 install -i https://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn av
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/
Collecting av
  Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/56/e9/8928607b46177d907deeb8a10f40156afab401b7120e63662f392074475b/av-9.2.0.tar.gz (2.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: av
  Building wheel for av (pyproject.toml) ... done
  Created wheel for av: filename=av-9.2.0-cp36-cp36m-linux_x86_64.whl size=5878372 sha256=554219aab65be28227d44a01a8532f43bd2f3e508987eb412749c2a5de7b0189
  Stored in directory: /home/xufuliang/.cache/pip/wheels/6d/86/0f/4bd66c9d0be54cf8418d7142ebc9b618c3c66f796ca2be45d4
Successfully built av
Installing collected packages: av
  WARNING: The script pyav is installed in '/home/xufuliang/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed av-9.2.0
最后安装ffmpeg,

安装依赖包

 sudo apt install yasm libsdl2-dev libx264-dev libx265-dev libfdk-aac-dev
源码编译ffmpeg

./configure --prefix=${FFMPEG_INSTALL_PATH} --enable-shared --enable-libx264 --enable-libx265 --enable-gpl --enable-libfdk-aac --enable-nonfree

make&&make install

你可能感兴趣的:(运维)