将 PyGame 安装到 USB (Windows)



我已经在闪存驱动器上下载了Python IDLE,这样我就可以在学校的计算机上工作,由于没有管理员权限,我无法下载任何内容。

尝试从我从官方安装的pygame-1.9.4文件夹中运行文件"config.py"时,我得到这个:

Using WINDOWS configuration...

Backup existing "Setup" file [Y/n]:n

我输入了n-就像我尝试的其他几次一样-并且我收到了相同的旧消息。

Path for SDL not found.
Too bad that is a requirement! Hand-fix the "Setup"
Path for FONT not found.
Path for IMAGE not found.
Path for MIXER not found.
Path for PNG not found.
Path for JPEG not found.
Path for PORTMIDI not found.
Path for COPYLIB_tiff not found.
Path for COPYLIB_z not found.
Path for COPYLIB_vorbis not found.
Path for COPYLIB_ogg not found.
If you get compiler errors during install, doublecheck
the compiler flags in the "Setup" file.

我尝试运行 config.py 文件以及 setup.py 文件,似乎没有任何效果。我很想从 pip 安装,但将其存储在 USB 驱动器上的整个想法不允许命令提示符知道我在输入"python -m pip install pygame"时到底在说什么。

对此的任何帮助都会很棒。也许它找不到所需的正确资源/文件,因为我将其存储在闪存驱动器上,但总的来说我没有太多好主意。我查看了Stack Overflow上的其他帖子,但它们没有奏效,可能是因为这种情况与在专用硬盘驱动器上运行不同,所有内容都在一个地方。同样,任何帮助将不胜感激!

在家中下载它们,然后将模块文件夹放在与程序相同的文件夹中

最新更新