you may need to restart the kernel to use updated packages如何解决

install pynomo包之后,出现Note: you may need to restart the kernel to use updated packages.,后面升级也提示错误
请问大家应该如何解决?

img

you may need to restart the kernel to use updated packages这个指的是需要重启kernel,Installing collected packages: pynomo,说明已经安装成功了。如果你的jupyter notebook只包含单个kernel,那么就是安装成功了,只要重启kernel,或者重启jupyter就可以。如果是多个kernel,在jupyter里面安装不一定是对的,建议在cmd里面安装。

写错了吧,应该这样:
pip install --upgrade pynomo

把库更新到最新版本就可以,命令如下。
pip install --upgrade pynomo