We Are Going To Discuss About Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.). So lets Start this Python Article.
Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.)
- How to solve Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.)
It looks like
setuptools>=58
breaks support foruse_2to3
:
setuptools changelog for v58
So you should updatesetuptools
tosetuptools<58
or avoid using packages withuse_2to3
in the setup parameters.
I was having the same problem,pip==19.3.1
- Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.)
It looks like
setuptools>=58
breaks support foruse_2to3
:
setuptools changelog for v58
So you should updatesetuptools
tosetuptools<58
or avoid using packages withuse_2to3
in the setup parameters.
I was having the same problem,pip==19.3.1
Solution 1
It looks like setuptools>=58
breaks support for use_2to3
:
So you should update setuptools
to setuptools<58
or avoid using packages with use_2to3
in the setup parameters.
I was having the same problem, pip==19.3.1
Original Author nnseva Of This Content
Solution 2
I install setuptools==58
It worked for me. pip install setuptools==58
. The error coming from setuptools==69
that previously ran in my device. and Finally saved me setuptools version 58 for this error.
Original Author Md Jewele Islam Of This Content
Solution 3
Upgrading MongoEngine to >= 0.20 would also fix the problem as Python2 support (hence use_2to3
) was dropped in 0.20
Original Author bagerard Of This Content
Solution 4
“pip install setuptools==58” worked for me. The setuptools version was 59 when I upgraded ubuntu to 22.04 and its python 3.10. I started a clean virtual environment for an existings django project. It had just two packages:
`pip list
Package Version
pip 22.0.2
setuptools 59.6.0`
Then I downgrade the setuptools to 58 as pip install setuptools==58.0.0. After that the pip install -r requirements.txt has not such error above.
Original Author Anand Pusarla Of This Content
Conclusion
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.