如何卸载Keras?

2024-03-19

我已经使用以下命令安装了 Keras:

sudo pip install keras

它安装正确并且工作正常,直到我尝试导入应用程序模块:

from keras.applications.vgg16 import VGG16
Using Theano backend.
Couldn't import dot_parser, loading of dot files will not be possible.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named applications.vgg16

我碰到这个链接推荐 https://groups.google.com/forum/#!topic/keras-users/3OpfQHzCk64卸载 Keras 并直接从 GitHub 安装 Keras:

sudo pip install git+https://github.com/fchollet/keras.git

在从 GitHub 重新安装 Keras 之前,我尝试使用此命令卸载 Keras,但它抛出此错误:

sudo pip uninstall keras
Can't uninstall 'Keras'. No files were found to uninstall.

您可以简单地尝试以下命令:

pip uninstall keras
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何卸载Keras? 的相关文章