尝试在 Python3 上使用带有 Debian 10 错误的街机库 pyglet_ffmpeg
Trying to use the arcade library on Python3 with Debian 10 errors with pyglet_ffmpeg
今天早上我一直在尝试通过 python3 使用街机库,但除了错误之外一无所获。
我的环境是 Debian 10 (buster)
我首先检查以确保安装了 python 3,这确认为 Python 3.7.3
我仔细检查了(根据街机库网站 arcade linux installation instructions 和 运行 python3 的安装,以确保安装了 pip 和所需的库。
我然后运行安装库的命令
sudo pip3 install arcade
为了测试它,复制并粘贴了 happy_face.py 示例。但是,当我尝试 运行 它时,我遇到了很多错误。这似乎与街机安装直接相关,如果我只是 运行 一个 python 脚本 (test.py) 只有一行
import arcade
在终端
python3 test.py
我收到以下错误
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavformat.so.58.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswresample.so.3.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavfilter.so.7.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavutil.so.56.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswscale.so.5.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavformat.so.58.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswresample.so.3.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavfilter.so.7.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavutil.so.56.*
Unable to find match for ffmpeg sound library at expected location:
/usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswscale.so.5.*
我使用以下终端命令来识别安装的 OpenGL 版本
glxinfo | grep "OpenGL version"
哪个返回
OpenGL version string: 3.3 (Compatibility Profile) Mesa 18.3.6
我也试过终端命令
sudo pip3 install pyglet-ffmpeg
哪个returns
Requirement already satisfied: pyglet-ffmpeg in
/usr/local/lib/python3.7/dist-packages (0.1.4)
Requirement already satisfied: pyglet>=1.4.0a1 in
/usr/local/lib/python3.7/dist-packages (from pyglet-ffmpeg) (1.5.0)
Requirement already satisfied: future in
/usr/local/lib/python3.7/dist-packages (from
pyglet>=1.4.0a1->pyglet-ffmpeg) (0.18.2)
如有任何帮助,我们将不胜感激。我尽量做到简明扼要,但如果需要更多信息,我很乐意提供。
我的系统有这些文件,但路径错误。我只是将它们复制到正确的路径,错误消失了。
$ cd ~/.local/
$ ln -s lib lib64
$ cd lib64/python3.7/site-packages/
$ cp -r pyglet_ffmpeg/linux_x86_64/ pyglet_ffmpeg2/
我什至没想过要查看这些库是否安装在其他地方。
结果我需要做的就是发出命令
$ cd ~/.local/
$ sudo ln -s lib lib64
非常感谢您的解决方案。
今天早上我一直在尝试通过 python3 使用街机库,但除了错误之外一无所获。
我的环境是 Debian 10 (buster)
我首先检查以确保安装了 python 3,这确认为 Python 3.7.3
我仔细检查了(根据街机库网站 arcade linux installation instructions 和 运行 python3 的安装,以确保安装了 pip 和所需的库。
我然后运行安装库的命令
sudo pip3 install arcade
为了测试它,复制并粘贴了 happy_face.py 示例。但是,当我尝试 运行 它时,我遇到了很多错误。这似乎与街机安装直接相关,如果我只是 运行 一个 python 脚本 (test.py) 只有一行
import arcade
在终端
python3 test.py
我收到以下错误
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavformat.so.58.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswresample.so.3.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavfilter.so.7.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavutil.so.56.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswscale.so.5.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavformat.so.58.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswresample.so.3.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavfilter.so.7.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavutil.so.56.*
Unable to find match for ffmpeg sound library at expected location: /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswscale.so.5.*
我使用以下终端命令来识别安装的 OpenGL 版本
glxinfo | grep "OpenGL version"
哪个返回
OpenGL version string: 3.3 (Compatibility Profile) Mesa 18.3.6
我也试过终端命令
sudo pip3 install pyglet-ffmpeg
哪个returns
Requirement already satisfied: pyglet-ffmpeg in /usr/local/lib/python3.7/dist-packages (0.1.4)
Requirement already satisfied: pyglet>=1.4.0a1 in /usr/local/lib/python3.7/dist-packages (from pyglet-ffmpeg) (1.5.0)
Requirement already satisfied: future in /usr/local/lib/python3.7/dist-packages (from pyglet>=1.4.0a1->pyglet-ffmpeg) (0.18.2)
如有任何帮助,我们将不胜感激。我尽量做到简明扼要,但如果需要更多信息,我很乐意提供。
我的系统有这些文件,但路径错误。我只是将它们复制到正确的路径,错误消失了。
$ cd ~/.local/
$ ln -s lib lib64
$ cd lib64/python3.7/site-packages/
$ cp -r pyglet_ffmpeg/linux_x86_64/ pyglet_ffmpeg2/
我什至没想过要查看这些库是否安装在其他地方。 结果我需要做的就是发出命令
$ cd ~/.local/
$ sudo ln -s lib lib64
非常感谢您的解决方案。