我利用这一指挥建立了虚拟环境:
/usr/bin/python2.7 -m virtualenv venv
它大多使用<代码>venv/bin/pip2.7。 印刷以下警告:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
无论指挥选择如何,乌班图16和乌班图20都是这样。
把上述警告纳入产品是不能接受的,只能造成混乱。 (由于Utub20支持2.7和pip2.7
至至少2030年,警告事实上是不正确的。) 如同所有大众节目使用的语言一样,在新的兼容语言即将上台之前,第275/2006号决议很可能得到支持。
我如何解脱警告?
<>Update>
It appears that this is a bug in pip versions 19+. How do I tell virtualenv
to install pip 18?