Will PIP work for python 2.7 after its End of Life on 1st Jan 2020

后端 未结 2 1125
悲哀的现实
悲哀的现实 2020-12-10 02:31

Python 2.7 is reaching its end of life on 1st Jan, 2020 as mentioned by

https://legacy.python.org/dev/peps/pep-0373/

https://pythonclock.org/

Will c

相关标签:
2条回答
  • 2020-12-10 03:03

    Yes. Python 2 support will live in a "community maintained" state though. Folks who care about it, will have to step up and fix issues -- pip maintainers will likely not work on resolving Python 2 issues. We've documented the exact expectations at:

    https://pip.pypa.io/en/stable/development/release-process/#python-2-support

    Note that pip maintainers are volunteers and I, personally, am not interested in doing free work for corporations / organizations which are stuck on an EOL'ed Python even after having a decade to switch.

    0 讨论(0)
  • 2020-12-10 03:06

    You need to make sure you have the right version of pip for Python 2.7:

    pip install --upgrade "pip < 19.1"
    

    That versions will be working for some time. Sooner or later they fail because PyPI host changes SSL configuration to one that Python 2.7 doesn't handle. But I'm sure we have a few years before that.

    A few additional version limits for important tools to retain compatibility with Python 2.7:

    pip install --upgrade "Sphinx < 2.0" "pytest < 5.0"
    

    If you use other tools follow their announcements thoroughly to catch them stopping supporting 2.7.

    0 讨论(0)
提交回复
热议问题