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