Home > other >  How to install pygame Python3.8 version?
How to install pygame Python3.8 version?

Time:09-22

Consult everybody: I am using Python3.8 version, could you tell me how to install pygame should be? Can not find a suitable pygame version, got an afternoon didn't also the installation was successful, who is a great god know trouble told me, online urgently, thank you very much,

CodePudding user response:

Python -m PIP install pygame

CodePudding user response:

Tried, I can't

CodePudding user response:

reference 1/f, old coconut response:
python -m PIP install pygame


Tried this method, error, can't install

CodePudding user response:

Prompt what mistake?

CodePudding user response:

The
cited the 4th floor old coconut reply:
prompt what mistake?


Prompt a lot of


E: \ Python \ Python38 & gt; Python -m PIP install pygame
Collecting pygame
Using cached https://files.pythonhosted.org/packages/b2/6b/c510f0853765eb2219c
A5aa3d416d65bb0dea7cd9bb2984aea0a0e04c24d/pygame - 1.9.4. Tar. Gz
Complete the output from the command python setup. Py egg_info:


WARNING, No "Setup" File Exists, Running "config. Py
"Using WINDOWS configuration...

The Path for SDL not found.
Too bad that is a requirement! Hand to fix the "Setup"
The Path for the FONT not found.
The Path for the IMAGE not found.
For MIXER with a Path not found.
The Path for the PNG not found.
The Path for JPEG not found.
The Path for PORTMIDI not found.
The Path for COPYLIB_tiff not found.
The Path for COPYLIB_z not found.
The Path for COPYLIB_vorbis not found.
The Path for COPYLIB_ogg not found.

If you get compiler errors during the install, doublecheck
The compiler flags in the "Setup" file.


Continuing With the setup. Py ""
The Error with the file "Setup",
Perhaps make a clean copy from "Setup. In".
-- -- --
For help with compilation see:
https://www.pygame.org/wiki/CompileWindows
To contribute To pygame development see:
https://www.pygame.org/contribute.html
-- -- --
C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ PIP install - x0vfi4a3 \ pygame \ setup py: 32
1: SyntaxWarning: invalid escape sequence \ d
Return ', '. Join (s for s in the.findall (' \ d +, ver) [3-0])
Traceback (the most recent call last) :
The File "& lt; string>" , the line 1, the in & lt; module>
The File "C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ PIP install - x0vfi4a3 \ pygame \ set
Up. Py, line 203, "in & lt; module>
Extensions=read_setup_file (' Setup ')
The File "E: \ Python \ Python38 \ lib \ distutils \ extension py", line 171, in read_se
Tup_file
The line=expand_makefile_vars (line, vars)
The File "E: \ Python \ Python38 \ lib \ distutils \ sysconfig py", line 405, in expand_
Makefile_vars
S=s [0: beg] + vars. The get (m.g roup (1)) + s/end:
TypeError: can only concatenate STR (not "NoneType") to the STR

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The Command "python setup. Py egg_info" failed with the error code 1 in C: \ Users \ ADMINI ~ 1
\ AppData \ Local \ Temp \ PIP install - x0vfi4a3 \ pygame \

CodePudding user response:

Pygame - 1.9.4. Tar. Gz I also download the file, use PIP install pygame. Tar. Gz to install is not successful

CodePudding user response:

Look at the tip
Can try
Unpack the pygame - 1.9.4. Tar. Gz
To pygame - 1.9.4 directory
Python config. Py
Python setup. Py install

If still won't do, it is possible that support for 3.8 questions,

CodePudding user response:

3.8 this is a new idea, this is a beta version, it is best not to use this new version, with 3.6 more steady

CodePudding user response:

Website update and timber to 3.7.2? It is not necessary to use the latest, just look at the latest pygame to 1.9.4 support python3.7, so definitely won't install

CodePudding user response:

The latest 3.8 also unstable, with 3.7

CodePudding user response:

Is there a way to install, change the name of the XML, changed the 37 to 38 PIP intall XXXXXX, installed correctly

CodePudding user response:

I download version 3.8, a few days ago also encounter this problem, try various versions of pygame file, installation is not successful, should be a development version is no adapter pygame3.8 version), then unload the python3.8, install the stable version of python3.7, enter the command window PIP install pygame==1.9.4 is automatically installed successfully,

CodePudding user response:

Is too new, pygame should fit 3.8 yet

CodePudding user response:

https://pypi.org/project/pygame/2.0.0.dev6/#files is available for download

CodePudding user response:

Need to upgrade the PIP itself
C: \ designed \ Python \ Python38-32 & gt; Python -m PIP install, upgrade PIP

| █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ | 1.4 MB 47
| █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ | 1.4 MB 47
| █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ | 1.4 MB 47
KB/s
Installing collected packages: PIP
Found existing installation: PIP 19.2.3
Uninstalling PIP - 19.2.3:
Successfully uninstalled PIP - 19.2.3
Successfully installed PIP - 19.3.1

Then install pygame
C: \ Python \ Python38-32 & gt; Python -m PIP install
Pygame
Collecting pygame
Downloading https://files.pythonhosted.org/packages/d2/ba/8e4f8fae51bd9d5766f1
F20c9ce451e93929ee9efdd2784b1a7b469ea76e/pygame - 1.9.6 - cp38 - cp38 - win32. WHL (4.4 MB
)
| █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ ▌ | 2.1 MB eta 0:01:51 20 KB/s
| █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ ▌ | 2.1 MB eta 0:01:51 20 KB/s
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related