问题
I'm running a VM on Google Cloud Platform using Jupyter notebook with word2vec models. I have the following code snippet:
from gensim.models import Word2Vec
amazon_word2vec = Word2Vec(model, min_count=1, size=100)
And it results in the error:
AttributeError: module 'boto' has no attribute 'plugin'
What is the solution to the above problem?
回答1:
pip install google-compute-engine
install google compute engine and restart your vm and it works fine.
来源:https://stackoverflow.com/questions/52414249/attributeerror-module-boto-has-no-attribute-plugin