gpt4 book ai didi

python - 在ubuntu上安装pygame

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:41:36 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 16.04 系统上安装 pygame。我的默认 python 是 2.7.12。我打开终端并尝试:

sudo apt-get install python-pygame

我收到这条消息:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python-pygame : Depends: python-numpy (>= 1:1.8.0) but it is not going to be installed
Depends: python-numpy-abi9
E: Unable to correct problems, you have held broken packages.

然后我尝试安装 numpy 并收到相同的消息,除了:

The following packages have unmet dependencies:
python-numpy : Depends: python:any (>= 2.7.5-5~)

我该怎么办?

最佳答案

想通了。找到一个重新安装 python 的终端命令:

sudo apt-get purge python && sudo apt-get install python2.7

关于python - 在ubuntu上安装pygame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39736745/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com