AttributeError: module 'boto' has no attribute 'plugin'

AttributeError: module 'boto' has no attribute 'plugin'

我是 运行 Google 云平台上的虚拟机,使用带有 word2vec 模型的 Jupyter notebook。我有以下代码片段:

from gensim.models import Word2Vec
amazon_word2vec = Word2Vec(model, min_count=1, size=100)

并导致错误:

AttributeError: module 'boto' has no attribute 'plugin'

以上问题的解决方法是什么?

pip install google-compute-engine

安装 google 计算引擎并重新启动您的虚拟机,它工作正常。