pip install 安装出现 DEPRECATION

pip install命令安装时出现“DEPRECATION: distro-info 1.1build1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063

pip install 安装出现 DEPRECATION_第1张图片

 

这个警告出现是因为您使用的是较新版本的pip,并且您要安装的软件包(distro-info 1.1build1)的版本号不符合pip 23.3引入的新规则。

在 pip 23.3 版本中,对于软件包的版本号进行了一些调整,要求软件包版本号符合标准的版本命名规则。例如,版本号不能包含"build"等非标准字符。

在这种情况下,distro-info 1.1build1 的版本号不符合pip 23.3的规则,所以pip给出了这个警告。

通常情况下,这个警告不会影响您安装软件包或软件包的功能。只是pip在未来的版本中可能会更加严格地强制执行版本号的规范。

要解决这个警告,可以尝试以下方法:

  1. 更新distro-info软件包:首先,尝试看看是否有distro-info软件包的更新版本。您可以运行以下命令来更新distro-info:

         pip install --upgrade distro-info

问题解决

你可能感兴趣的:(pip)