Installing auto-py-to-exe on Windows gives an error like "error: invalid command 'egg_info' [end of output]"

Viewed 58

I'm a newbie programmer and I'm learning python. I tried to install auto-py-to-exe on my Windows device with CMD but it gave an error like this:

    Collecting auto-py-to-exe
  Downloading auto_py_to_exe-2.20.1-py2.py3-none-any.whl (94 kB)
     ---------------------------------------- 94.1/94.1 KB 2.7 MB/s eta 0:00:00
Collecting pyinstaller>=4.6
  Downloading pyinstaller-5.1-py3-none-win_amd64.whl (1.2 MB)
     ---------------------------------------- 1.2/1.2 MB 1.6 MB/s eta 0:00:00
Collecting Eel==0.14.0
  Downloading Eel-0.14.0.tar.gz (17 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      C:\Users\MUHAMMED ALİ\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
        warnings.warn(msg)
      C:\Users\MUHAMMED ALİ\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'extras_require'
        warnings.warn(msg)
      C:\Users\MUHAMMED ALİ\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
        warnings.warn(msg)
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help

      error: invalid command 'egg_info'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

So how can I fix this problem? Thanks for any help.

0 Answers
Related