im having trouble installing python [duplicate] - pygame

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

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

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

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

Cython import module error on production machine [duplicate]

This question already has answers here:
Is Python C module extension version incompatible?
(1 answer)
Importing cython generated *.so-module with another python-version or on another OS
(1 answer)
Closed 1 year ago.
I have compiled pyx codes using cython on my development machine which resulted in pyd files. import mymodulename works fine on my machine.
However, when I took my pyd files to production machine, `import mymodulename' is throwing error that module not found.
I have looked at cython-pyd-files-not-importing-through-python, however not much help. Also, my development machine has python 3.7 and production machine has 3.8 . What else I should do to make this work?
Thanks for the comments. It was python version issue. Cython needs same python version on both machines. After installing python 3.8 on my local environment and compiling , the new pyd files started working on production machine also.

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.