#๐ error message when installing pygame "subprocess-exited-with-error"
41 messages ยท Page 1 of 1 (latest)
@wintry vessel
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
what python version are you running, and what architecture is the CPU
This might help you:
For help with compilation see:
https://www.pygame.org/wiki/CompileWindows
from your listing.
This:
from setuptools._distutils.msvccompiler import MSVCCompiler, get_build_architecture
ModuleNotFoundError: No module named 'setuptools._distutils.msvccompiler'
suggests to me that you need to instal a compiler. (Disclaimer: I'm not a windows person.)
newest version 3.14/6a i think and im not sure what the architecture of the cpu is but the cpu is a 7600x
rlly?
Possibly try a slightly older Python? If you're installing to something very recent like 3.13.
The OP seems to just be installing pygame, very normal.
Maybe that person was in the wrong thread.
k
If you type py -0, what does it show?
-
Active venv
-V:3.14 Python 3.14 (64-bit)
Right. Very new. Can yoou install (additionally) Python 3.13 or 3.12?
In fact, 3.14 might be in beta still.
The point here being that there should be prebuilt pygame installs for the slightly older Pythons.
Your troubles come from it trying to build from source, because prebuilt builds aren't there.
should i uninstall and download 3.13?
Not uninstal. Just fetch 3.13 (or safer again, 3.12).
py (the Python launcher) will manage multiple Pythons. Just pick the right one for your stuff, eg by saying py -3.12 to invoke the 3.12 Python (once it's installed).
i installed 3.13 now what ?
done, what next? Do i do pip install again?
Where did you find 3.14 it's in alpha
https://www.python.org/downloads/ this one?
yeah
You need to pip install, but to the 313 environment:
py -3.13 -m pip install pygame
i installed it i deleted 3.14 and reinstalled everything
Seems a bit drastic, but did it work?
it works
Yay. I think 3.14 is just oo new to have pygame binary installs available.
I checked it's to 3.13
Yes but they started with 3.14
Just I gone to do something else so I didn't check the reply ๐ฅด
So definitely need downgrade as op have done already
yeah
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.