简体   繁体   中英

error botocore.vendored module not found after installing gensim

When I am trying to import gensim, I am getting no error. But when I try to read a word embedding model, I am getting the following error trace. Kindly help me.

I am using Windows 7, python 3.7.6 and anaconda 2020.2.

I have tried everything but unable to resolve this. Please help me.

Trace:

Traceback (most recent call last):

File "C:\Users\user\Desktop\Work\6\PLOT_SCATTER.py", line 10, in from gensim.models import FastText

File "C:\Users\user\anaconda3\lib\site-packages\gensim__init__.py", line 5, in from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils # noqa:F401

File "C:\Users\user\anaconda3\lib\site-packages\gensim\parsing__init__.py", line 4, in from.preprocessing import (remove_stopwords, strip_punctuation, strip_punctuation2, # noqa:F401

File "C:\Users\user\anaconda3\lib\site-packages\gensim\parsing\preprocessing.py", line 42, in from gensim import utils

File "C:\Users\user\anaconda3\lib\site-packages\gensim\utils.py", line 45, in from smart_open import open

File "C:\Users\user\anaconda3\lib\site-packages\smart_open__init__.py", line 28, in from.smart_open_lib import open, parse_uri, smart_open, register_compressor

File "C:\Users\user\anaconda3\lib\site-packages\smart_open\smart_open_lib.py", line 28, in import boto3

File "C:\Users\user\anaconda3\lib\site-packages\boto3__init__.py", line 16, in from boto3.session import Session

File "C:\Users\user\anaconda3\lib\site-packages\boto3\session.py", line 17, in import botocore.session

File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\botocore\session.py", line 28, in import botocore.configloader

File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\botocore\configloader.py", line 19, in from botocore.compat import six

File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\botocore\compat.py", line 24, in from botocore.vendored import six

ModuleNotFoundError: No module named 'botocore.vendored'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM