Search results
Results From The WOW.Com Content Network
In Windows. 1.open CMD. 2.Path should locate where pip is installed for me it is C:\Users\qwrht\AppData\Local\Programs\Python\Python36-32\Scripts>. if python is in other directory follow steps in link CMD command to change directories. 3.getting to the right path where pip is installed use command **pip install pygame.**in CMD.
if pip is not install copy this file link and save it to setup.py now open cmd and run script by typing . python setup.py for more details check link. when pip in install correctly install run this commond. python -m pip install -u pygame --user
1. in console of vscode use this command: pip install pygame. – Mehrdad Dowlatabadi. Jan 26, 2019 at 8:20. 1. To elaborate on @Mehrdad's suggestion: There's a section on installing matplotlib in the Install and use packages section of the Visual Studio Code Get Started Tutorial. Something similar should work for pygame.
I need to install Pygame 1.9.1 and this is not part of the conda repository. I cannot run the Windows installer because Anaconda has not made registry entries for Python and the .msi does not recognize the Python version. So, I tried to install Pygame from source.
'python3 -m pip install -U pygame --user', I've even tryed upgrading it with 'sudo pip3 install --upgrade pip', and 'sudo pip3 install pygame==2.0.0.dev6', and 'pip3.9 install pygame'. Just for clarification, I already have it on my older version of IDLE, but I'm trying to get it on the newer version (3.9).
0. To install pygame you need to write the command: pip install pygame. in your command prompt, if that does not work try: pip3 install pygame. If that fails, make sure to install python from this link. Make sure to add python and pip to your environment path. Restart your computer and then try again!
I need it to install to the installation at /opt/anaconda and it generally goes to the default python that comes with OS X. If you're wondering conda evironments contain pip by default. Do a 'conda list | grep pip' in your env to confirm this. Doing pip install pygame in the activated environment will use the pip in that env and solve your issue.
Many packages do not have pre-built wheels for Python 3.9 as it is new. Also pygame-1.9.6-cp27-cp27m-win_amd64.whl is for Python 2.7
I had the same problem to install pygame in my jupyter notebook with Python 3.7. Spent couple of hours reading the stack overflow + tried and testing all the codes. Still didn't work.
Assuming you're using an IDE with the ability to automatically install imports (PyCharm for example) you can just set your IDE's current interpreter to python 3.7.4 and use it to install pygame instead of using pip. The problem has something to do with the pygame install not working with python 3.8 so either revert your interpreter, role back ...