Python setup.py egg_info failed with error code 1

the following error occurs when installing several packages with pip:

python setup.py egg_info failed with error code 1;

tried:
1 runs in administrator mode; 2. Update setuptools to the latest version; 3. And some messy ways that I can"t think of.

when the newcomer is on the road, don"t dislike the old driver.

Mar.06,2021

this should be the negligence of the author who wrote the jsoncsv package. Take a look at the setup.py :

of this package.
import codecs


with codecs.open('README.rst', encoding='utf-8') as f:
    readme = f.read()

you can try to clone the source code of this package locally, replace the lines mentioned in setup.py with encoding='utf-8'
and run

$ python setup.py install

so that you can install normally.
it is recommended that you give the author of this library an issue, and ask him to modify the source code as well. However, it is also possible that the purpose of this package written by the author is only for the Linux environment, without considering windows users. In short, it is best to communicate with the author and let the author know about this situation.

Menu