imageio-ffmpeg安装清华源
时间: 2023-12-15 16:01:22 浏览: 69
您可以通过以下步骤在清华源上安装imageio-ffmpeg:
1. 打开终端或命令提示符。
2. 使用以下命令编辑apt源列表文件:
```
sudo nano /etc/apt/sources.list
```
3. 在打开的文件中,将默认的源修改为清华源。将下面的内容粘贴到文件中:
```
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ YOUR_UBUNTU_VERSION_HERE main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ YOUR_UBUNTU_VERSION_HERE-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ YOUR_UBUNTU_VERSION_HERE-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ YOUR_UBUNTU_VERSION_HERE-security main restricted universe multiverse
```
请将`YOUR_UBUNTU_VERSION_HERE`替换为您正在使用的Ubuntu版本,例如`focal`或`bionic`。
4. 使用Ctrl + X键退出编辑器,并按Y键保存修改。
5. 运行以下命令更新软件包列表:
```
sudo apt update
```
6. 安装imageio-ffmpeg:
```
sudo apt install libavdevice-dev
```
这样,您就成功地在清华源上安装了imageio-ffmpeg。如果一切顺利,您现在应该能够在开发环境中使用它了。