I can not download "pygame" or "kivy" through the command "pip install ..."

0

When I try to download pygame the following appears, remembering that my pc is windows 10 - 64bit. use python 3.7.0b3 (64bit)

downloading pygame:

Collecting pygame

Using cached pygame-1.9.3.tar.gz     Complete output from command python setup.py egg_info:

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

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

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


Continuing With "setup.py"
Error with the "Setup" file,
perhaps make a clean copy from "Setup.in".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Raiqu\AppData\Local\Temp\pip-build-1fc7i7f1\pygame\setup.py", line 165, in <module>
    extensions = read_setup_file('Setup')
  File "c:\users\raiqu\appdata\local\programs\python\python37\lib\distutils\extension.py", line 171, in read_setup_file
    line = expand_makefile_vars(line, vars)
  File "c:\users\raiqu\appdata\local\programs\python\python37\lib\distutils\sysconfig.py", line 407, in expand_makefile_vars
    s = s[0:beg] + vars.get(m.group(1)) + s[end:]
TypeError: can only concatenate str (not "NoneType") to str

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C: \ Users \ Raiqu \ AppData \ Local \ Temp \ pip-build-1fc7i7f1 \ pygame \

And when I try to download Kivy, this appears:

Exception:

Traceback (most recent call last):   File "c: \ users \ raq \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ compat__init __. Py", line 73, in console_to_str     return s.decode (sys. stdout .encoding) UnicodeDecodeError: 'utf-8' codec can not decode byte 0xe3 in position 44: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):   File "c: \ users \ raiqu \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ basecommand.py", line 215, in main     status = self.run (options, args)   File "c: \ users \ raiqu \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ commands \ install.py", line 335, in run     wb.build (autobuilding = True)   File "c: \ users \ raq \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ wheel.py", line 749, in build     self.requirement_set.prepare_files (self.finder)   File "c: \ users \ raq \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ req \ req_set.py", line 380, in prepare_files     ignore_dependencies = self.ignore_dependencies))   File "c: \ users \ raq \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ req \ req_set.py", line 634, in _prepare_file     abstract_dist.prep_for_dist ()   File "c: \ users \ raq \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ req \ req_set.py", line 129, in prep_for_dist     self.req_to_install.run_egg_info ()   C: \ users \ rag \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ req \ req_install.py ", line 439, in run_egg_info     command_desc = 'python setup.py egg_info')   File "c: \ users \ raiqu \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ utils__init __. Py", line 676, in call_subprocess     line = console_to_str (proc.stdout.readline ())   File "c: \ users \ raiqu \ appdata \ local \ programs \ python \ python37 \ lib \ site-packages \ pip \ compat__init __. Py", line 75, in console_to_str     return s.decode ('utf_8') UnicodeDecodeError: 'utf-8' codec can not decode byte 0xe3 in position 44: invalid continuation byte

If you can help me, thank you.

    
asked by anonymous 13.04.2018 / 17:25

1 answer

0

Is your pip up to date? If it is not, update with the following command: pip install --upgrade pip.

Remember to open cmd as an administrator.

    
13.04.2018 / 18:00