python - 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'
上述问题的解决方案是什么?
解决方案
pip install google-compute-engine
安装谷歌计算引擎并重新启动你的虚拟机,它工作正常。
推荐阅读
- c# - 自动创建 RectTransform 的原因
- javascript - 在 React 中选择/取消选择自定义表中的行
- javascript - 如何在节点 js 中使用 oracle 高级队列(OAQ)
- php - 尽管“全局”,php在函数中没有变量
- r - 将字符串变量传递给 forcats::fct_reorder
- r - 将带有空格/特殊字符的命令传递给 R 系统命令
- c# - “调试”模式下的 Visual-studio 扩展项目构建错误
- python - VSCode 中的 Python 路径
- docker - 如何运行从 docker hub 下载的 docker compose 映像(在 Windows 10 w/Docker Toolbox 中)?
- kdb - KDB 获取季度的最后/第一天