我在 Google Cloud Platform 上使用 Jupyter notebook 和 word2vec 模型运行虚拟机。我有以下代码片段:
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
安装谷歌计算引擎并重启你的虚拟机,它工作正常。
关于python - 属性错误 : module 'boto' has no attribute 'plugin' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52414249/