升级 numpy 时收到警告消息

问题描述 投票:0回答:1

当我尝试在 jupyter 笔记本中更新 numpy 时,我收到此警告:警告:忽略无效的分发 -rotobuf (c:\users og strix ppdata oaming\python\python310\site-packages) 此警告消息的含义以及如何避免此警告消息。我也找不到这条路。 rotobuf 是什么意思。

如何避免此类警告

python numpy warnings upgrade message
1个回答
0
投票

我看到您正在尝试更新 numpy,但是您收到了一个错误,后面是 警告:忽略无效的分发 -rotobuf (c:\users og strix ppdata oaming\python\python310\site-packages)

在我看来,该软件包没有正确安装。首先请检查protobuf是否安装正确。

检查一下,

pip show protobuf

如果出现错误,请更新 protobuf,

pip install --upgrade protobuf
进行更新。不过,如果它不能解决您的问题,那么重新安装 protobuf 可能是个好主意

要卸载,

pip uninstall protobuf
。重新安装
pip install protobuf

另外,你也可以看看这篇文章, https://www.reddit.com/r/StableDiffusion/comments/14ksyo4/sd_startup_warning_ignoring_invalid_distribution/?rdt=38231

https://discuss.python.org/t/pip-installing-off-path-should-i-do-something/21353 https://discuss.python.org/t/having-issues-pip-installing/13673/3

我希望这对您有所帮助,并希望您很快找到解决方案

© www.soinside.com 2019 - 2024. All rights reserved.