pygame installation error in vs code

Asked

Viewed 305 times

0

When installing pygame no vs code by the console and it returned me the following:

pip install pygame
Defaulting to user installation because normal site-packages is not writeable
Collecting pygame
  Using cached pygame-1.9.6.tar.gz (3.2 MB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9qsem_9r/pygame/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9qsem_9r/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-9qsem_9r/pygame/pip-egg-info
         cwd: /tmp/pip-install-9qsem_9r/pygame/
    Complete output (18 lines):


    WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
    Using UNIX configuration...


    Hunting dependencies...
    SDL     : found 1.2.15
    FONT    : not found
    IMAGE   : not found
    MIXER   : not found
    PNG     : found
    JPEG    : found
    SCRAP   : found
    PORTMIDI: not found
    PORTTIME: not found
    FREETYPE: found 23.1.17
    Missing dependencies
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I’ve tried to

  1. Pip install -U setuptools
  2. sudo -H Pip install -U setuptools

1 answer

0

The problem is more likely with python 3.8, you need to compile it or use an older version of python (<= 3.7).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.