Error "python setup.py egg_info did not run successfully" while installing cyberpanel

Error shows up while installing and its looping.

OS: Ubuntu 22.04 , Aws

Collecting decorator==3.4.0
  Using cached decorator-3.4.0.tar.gz (30 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in decorator setup command: use_2to3 is invalid.
      [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.

Thanks,

Welcome @Azx Happy you are here

Seems to be an issue with pip, wheel, setuptools

You need to do a clean installation by restoring to an earlier snapshot when you first leased server or straight up reinstall the os

Kindly post the results of this command before you install

$ python --version
1 Like

I got the same error, installed python 3.9, change the version, command output
python3 -V
Python 3.9.13
any idea how to solve?

Hello @troy

I do not understand this statement. What do you get when you run python3 -V ?

simple:
python3 -V
Python 3.9.13