首页 > 解决方案 > AttributeError:模块 'boto' 没有属性 'plugin'

问题描述

我正在使用带有 word2vec 模型的 Jupyter 笔记本在 Google Cloud Platform 上运行 VM。我有以下代码片段:

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

它会导致错误:

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

上述问题的解决方案是什么?

标签: pythongoogle-cloud-platformjupyter-notebookgoogle-compute-engineword2vec

解决方案


pip install google-compute-engine

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


推荐阅读