I tried almost everything yet pygame is not installing [duplicate] - pygame

This question already has answers here:
Unable to install Pygame using pip
(27 answers)
Python pygame not installing
(3 answers)
Closed 3 months ago.
everytimg i try to install pygame i recive this error.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
im not sure what to do as i feel like ive tried everything.
i tried running the Get-ExecutionPolicy in the terminal and got “RemoteSigned”.
i tried uninstalling and re installing VS code.
i tried different variations ex: pip3 install pygame, and got the same error message

Related

Versions/3.11/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/ayoubnaoui/install': [Errno 2] No such file or directory [duplicate]

This question already has answers here:
Unable to install Pygame using pip
(27 answers)
pygame installation issue in mac os
(5 answers)
Closed last month.
I have being using pygame module for some time, but after downloading some packages like homebrew and octave visual studio no longer recognizes pygame even though it has already been installed
below is the error -
/opt/homebrew/bin/pytho
n3.11 /Users/ayoubnaoui/Desktop/game5/main.py
Traceback (most recent call last):
File "/Users/ayoubnaoui/Desktop/game5/main.py", line 1, in
import pygame
ModuleNotFoundError: No module named 'pygame'
For the pygame module to be recognized and for the game to run

Getting error message: ModuleNotFoundError: No module named 'pygame' [duplicate]

This question already has answers here:
Problems getting pygame to show anything but a blank screen on Macos
(10 answers)
Closed 2 years ago.
Just started programming in python and pygames.
Whenever I try running a py file with pygames, the pygames window will appear, but there will be absolutely nothing in it. No errors in the log, but nothing shows, it's just a gray screen.
I tried running it on IDLE, and through the command line (I'm on a mac so I use the terminal)
And it's not just my programs that aren't showing anything, I've tried to run one of pygames examples, and it will still not display anything. For example, if I run the pygames alien example, the window will appear with a blank gray background. I'll hear the audio for the program, but no display.
Anything would help, I'm at a loss especially since no errors are showing in the log.
EDIT1:
I'm using Python 3 (and I really need to keep using Python 3)
EDIT2:
I'm using python 3.7. pygames version 1.9.4. The examples are with the pygames, they were downloaded together, so I assume it's for that version.
EDIT3:
ok, my OS is Mojave 10.14. I've tried starting the application by: opening the file, running it on IDLE, and running it through the command line, none have worked. python2 is installed, but when I run the pygame it's a python3 file
Known issue with Mojave - see their issue tracking: https://github.com/pygame/pygame/issues/555
You can also install new pygame using pip install pygame=2.0.0.dev6. This
worked in my case.

im having trouble installing python [duplicate]

This question already has answers here:
pygame installation issue in mac os
(5 answers)
Pygame already installed; however, python terminal says "No module named 'pygame' " (Ubuntu 20.04.1)
(1 answer)
Closed 2 years ago.
when i try to download pygame with python version 3.8.5 this message shows up "terminal Requirement already satisfied: pygame in ./Library/Python/2.7/lib/python/site-packages (1.9.6)"

PyInstaller encounters an error with built executable [duplicate]

This question already has answers here:
PyInstaller, spec file, ImportError: No module named 'blah'
(3 answers)
Pyinstaller Unable to access Data Folder
(1 answer)
Python - pygame error when executing exe file
(3 answers)
Closed 2 years ago.
I made a Pygame game using Python and converted it into a .exe file using the command:
pyinstaller file.exe --onefile
I gave the output to my friends who told me that a error pops up when they started my .exe file.
file.exe has stopped working windows is finding a solution
Please help.
EDIT
To be more specific:
I am on windows 7
Python version is 3.6
Pygame version is 1.9.6

Install pygame on window10 cmd error [duplicate]

This question already has an answer here:
Permission Error when installing pygame on python 3.5
(1 answer)
Closed 5 years ago.
I have been using Window OS and latest python version(64bit)
I was trying to install pygame on cmd window but have problems like picture that I uploaded...
please check and advise for me...
The error message in the cmd window:
See what is described in this link:
Permission Error when installing pygame on python 3.5
See also the comments.