python - 属性错误 : module 'boto' has no attribute 'plugin'

标签 python google-cloud-platform jupyter-notebook google-compute-engine word2vec

我在 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/

相关文章:

python - 是否有用于列出素数的 Python 库?

python - 在 Blob 存储中创建文件夹层次结构时生成意外链接

mysql - 为什么 Google Cloud SDK (gcloud) 尝试访问本地 MySQL 实例?

java - GoogleCredential.getApplicationDefault() 不返回 GCE 实例凭证

python - 有没有办法在不安装Qt的情况下安装jupyter?

python - 如何在 Altair 中制作 "small multiples"( map )图表

python - 非法指令 : 4 error when running any Tensorflow program

python - seaborn distplot 循环惰性求值

python - 无法导入名称 GoogleMaps

python - Flask部署