#๐Ÿ”’ error message when installing pygame "subprocess-exited-with-error"

41 messages ยท Page 1 of 1 (latest)

wintry vessel
#

what do i do?
error starts when 'getting requirements to build wheel'

dense prismBOT
#

@wintry vessel

Python help channel opened

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.

frank ibex
#

!paste

dense prismBOT
#
Pasting large amounts of code

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.

wintry vessel
frank ibex
#

what python version are you running, and what architecture is the CPU

lost holly
#

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.)

wintry vessel
#

rlly?

lost holly
#

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.

lost holly
wintry vessel
#

k

lost holly
#

If you type py -0, what does it show?

wintry vessel
#
  •           Active venv
    

-V:3.14 Python 3.14 (64-bit)

lost holly
#

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.

wintry vessel
#

should i uninstall and download 3.13?

lost holly
#

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).

wintry vessel
#

i installed 3.13 now what ?

wintry vessel
quaint jay
wintry vessel
#

idk

#

it was on the page when i was downloading

quaint jay
wintry vessel
#

yeah

lost holly
wintry vessel
#

i installed it i deleted 3.14 and reinstalled everything

quaint jay
#

Seems a bit drastic, but did it work?

wintry vessel
#

it works

lost holly
#

Yay. I think 3.14 is just oo new to have pygame binary installs available.

frank ibex
#

I checked it's to 3.13

lost holly
frank ibex
#

Just I gone to do something else so I didn't check the reply ๐Ÿฅด

#

So definitely need downgrade as op have done already

dense prismBOT
#
Python help channel closed for inactivity

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.