gpt4 book ai didi

pygame - 在 virtualenv 中安装 pygame

转载 作者:行者123 更新时间:2023-12-01 15:30:35 28 4
gpt4 key购买 nike

我使用 fedora 20、Python 2.7 和 virtualenv 1.10.1。我想在 virtualenv 中安装 pygame,我得到了

You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files. HTTP error 400 while getting http://www.pygame.org/../../ftp/pygame-1.6.2.tar.bz2 (from http://www.pygame.org/download.shtml) Could not install requirement pygame because of error HTTP Error 400: Bad Request



我找到了 this在GitHub中,所以我尝试了但没有成功

pip install git+http://github.com/xamox/pygame


要求缺少的依赖项。我知道我必须安装 sdl*。我可以在 virtualenv 中做还是必须在系统上做?有什么推荐吗?

我安装了 PySDL 但仍然没有

最佳答案

最后,我在 virtualenv 上安装 pygame 的方法是:

su -c "yum-builddep pygame"

由于 pygame 安装程序正在等待用户确认缺少依赖项,我需要通过管道输入"is"。所以
yes y | pip install hg+http://bitbucket.org/pygame/pygame

或者
yes y |pip install git+http://github.com/xamox/pygame

smpeg-config 依赖项仅在 fedora16 上可用,所以我忽略了它,这很有效。

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

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