Bonjour,
J'utilise python 2.X (oui je sais c'est très old school, mais je n'ai pas le choix).
J'essaie d'installer l'outil pyinstaller et ça échoue.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
C:\Users\sdasilva\Documents\Outils\Python2718>python -m pip install pyinstaller
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pi
p.pypa.io/en/latest/development/release-process/#python-2-support
Collecting pyinstaller
  Using cached pyinstaller-4.0.tar.gz (3.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\sdasilva\Documents\Outils\Python2718\python.exe' 'C:\Users\sdasilva\Documents\Outils\Python2718\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\sdasilva\appdata\local\temp\tmptko71v'
       cwd: c:\users\sdasilva\appdata\local\temp\pip-install-7ixv6m\pyinstaller
  Complete output (19 lines):
  Traceback (most recent call last):
    File "C:\Users\sdasilva\Documents\Outils\Python2718\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 280, in <module>
      main()
    File "C:\Users\sdasilva\Documents\Outils\Python2718\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\sdasilva\Documents\Outils\Python2718\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "c:\users\sdasilva\appdata\local\temp\pip-build-env-pzv8fb\overlay\Lib\site-packages\setuptools\build_meta.py", line 146, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "c:\users\sdasilva\appdata\local\temp\pip-build-env-pzv8fb\overlay\Lib\site-packages\setuptools\build_meta.py", line 127, in _get_build_requires
      self.run_setup()
    File "c:\users\sdasilva\appdata\local\temp\pip-build-env-pzv8fb\overlay\Lib\site-packages\setuptools\build_meta.py", line 243, in run_setup
      self).run_setup(setup_script=setup_script)
    File "c:\users\sdasilva\appdata\local\temp\pip-build-env-pzv8fb\overlay\Lib\site-packages\setuptools\build_meta.py", line 142, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 63
      file=sys.stderr)
          ^
  SyntaxError: invalid syntax
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\sdasilva\Documents\Outils\Python2718\python.exe' 'C:\Users\sdasilva\Documents\Outils\Python2718\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\sdasilva\appdata\local\
temp\tmptko71v' Check the logs for full command output.
J'ai essayé divers choses que j'ai trouvé sur le net, comme changer la version de pip, mais ça n'a rien changé.

Merci.