Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install cant download via pygame site either... #4160

Open
RaisingTheCode opened this issue Feb 21, 2024 · 1 comment
Open

Cant install cant download via pygame site either... #4160

RaisingTheCode opened this issue Feb 21, 2024 · 1 comment
Labels

Comments

@RaisingTheCode
Copy link

RaisingTheCode commented Feb 21, 2024

  • Operating system (Windows 10 64bit):
  • Python version (3.11.8) :
  • SDL version (none?): first time using python (dont know what this is)
  • PyGame version (tried multiple amd64 bit versions) but it wont pick up the info for download
  • Relevant hardware (e.g. if reporting a bug about a controller, tell us the brand & name of it)

I am sorry I am so new to coding that I can barely understand anything as I am so new to coding that this is seriously my first time. told to load this to start learning game coding with visual studio and github but this one has been the hardest part and would prefer this over the other python system game creation tools as I have heard good things about it.

Test code

If possible add a simple test program that shows the problem described in this report.

import pygame
>>>import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pygame'
>>> print("Hello,world")
Hello,world
@agrzegorzewski
Copy link

Hi,
Pygame is not a part of the Python standard library, so it has to be installed via pip(Python's package manager, simillar to npm if you've used it before).
To install the package into your current project should be pretty straightforward. cd into the root folder of your project and run python -m pip install pygame and then you should have the dependency resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants