0
我试过三种不同的方法。最近的一次是在这里以下说明:http://www.pygame.org/wiki/CompileUbuntu仍然无法在Ubuntu上安装pygame
但是,当我在第一行中键入
sudo apt-get install mercurial python-dev python-numpy ffmpeg \
,有人告诉我
E: Package 'ffmpeg' has no installation candidate.
我继续与指示,我后来告诉某些依赖关系丢失了(尽管那些是我以前试图安装的)。
后来,当我把
sudo python3 setup.py install
它告诉我
src/_pygame.h:80:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
退房http://askubuntu.com/a/312977/306707 –