您可能需要安装特定版本的PyGame,例如python -m pip install pygame==1.9.3 我一直在使用PyGame 1.9.3和Python 3.6.8,它运行得很好 目前(2022年11月),Python v. 3.11 for Windows x64与当前版本的Pygame(2.1.2)不兼容。为了使其工作,你必须回滚到Python 3.10.2(通过测试确认)。
1.我安装的是python3.6,python的下载地址为:https://www.python.org/downloads/ 2.在安装pygame前,我们需要安装pip,这个pip相当于苹果手机的appstore,专门用来安装python的扩展库。我安装的python3.6已经集成pip了,若没有pip,则需要去官网上下载。 判断有无pip的方法是在cmd中输入pip,会出来一大堆东西。 没有.....
When i try to import pygame in a uv venv after installing it on an M1 pro macbook, it fails to run a file. This is the error i see in the terminal Traceback (most recent call last): File "/Users/yashranjan/Documents/snake/main.py", line 1, in <module> import pygame File "/U...
电脑“运行…”中pip install模块成功,在Pycharm中还是ModuleNotFoundError问题的解决 最近开始学习python和pycharm,按照教程开始加载pygame模块 先从www.pygame.org下载了pygame,在电脑“运行…”中安装,并用...;Project Interpreter中直接搜索pygame,然后Install Package: 尝试了一下,安装不成功: 提示信息如下: 解决方...
Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [29 lines of output] Traceback (most recent call last): ...
Once Python is installed, you have to perform a final check: you have to see if pip is installed. Generally, pip is pre-installed with Python but we are never sure. Same as for Python, type the following command: pip --version
× Getting requirements to build wheel did not run successfully. │ exit code:1╰─> See aboveforoutput. note: This error originatesfroma subprocess, andislikely not a problem with pip.` 最后解决办法就是更新一下wheel就行了: pip install wheel --upgrade ...
Environment: Operating system:Windows Python version: Pypy 3.10 SDL version:idk PyGame version:havent installed yet Relevant hardware:self-built pc Current behavior: Can't install setuptools._distutils.msvccompiler Expected behavior: Pyg...
我的环境Python3.7.4(从python.org下载)pip install pygame 但是,如果出现致命错误,则会失败,该错误可以概括为致命错误:SDL.hfilenot找到了--完整的安装输出如下所示。使用pygameinstalling安装安装pip3安装游戏--2.0.0_dev4选项,我甚至尝试下载SDL2源代码 浏览4提问于2019-12-14得票数 4 2回答 如何为Xcode启用...
pip install mido Downloading mido-1.3.2-py3-none-any.whl (54 kB) Downloading packaging-23.2-py3-none-any.whl (53 kB) Installing collected packages: packaging, mido Successfully installed mido-1.3.2 packaging-23.2 mido 官网文档 pip intall pygame ...