Skip to content
Advertisement

Error in anyjson setup command: use_2to3 is invalid

JavaScript

This is a common error which the most common solution to is to downgrade setuptools to below version 58. This was not working for me. I tried installing python3-anyjson but this didn’t work either. I’m at a complete loss.. any advice or help is much appreciated.

If it matters: this application is legacy spaghetti and I am trying to polish it up for a migration. There’s no documentation of any kind.

The requirements.txt is as follows:

JavaScript

Any advice, input, or help is very much appreciated.

Advertisement

Answer

Downgrading setuptools worked for me

JavaScript

And then

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement