来自 pipelinev --version 的 PkgResourcesDeprecationWarning 警告是什么意思?

rek*_*ein 25 python3 pipenv 22.04

pipenv --version当我运行相关命令时,我收到此警告。

/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
pipenv, version 2022.5.2
Run Code Online (Sandbox Code Playgroud)

scr*_*ibe 35

setuptools 中的错误似乎导致了这种情况。在pipelinev 的 Github 存储库上也有一些关于此的讨论。这两个地方的人们给出了不同的解决方法。唯一对我有用的是,

pip install --upgrade --user setuptools==58.3.0
Run Code Online (Sandbox Code Playgroud)

请注意,这实际上是降级。现在pipenv --version运行时没有警告。

  • 谢谢,我不再收到警告了。 (4认同)