UserWarning: The gensim.similarities.levenshtein submodule is disabled, because the optional Levensh

简介: UserWarning: The gensim.similarities.levenshtein submodule is disabled, because the optional Levensh

UserWarning: The gensim.similarities.levenshtein submodule is disabled, because the optional Levenshtein package < https://pypi.org/project/python-Levenshtein /> is unavailable. Install Levenhstein (e.g. pip install python-Levenshtein`) to suppress this warning.warnings.warn(msg)警告解决方案

将下面代码复制粘贴到import gensim之前,注意一定要在之前否则导入import gensim就会出现警告。

import warnings
warnings.filterwarnings('ignore')  # 警告扰人,手动封存

完美解决!


相关文章
|
算法框架/工具
成功解决INFO: pip is looking at multiple versions of keras-preprocessing to determine which version is c
成功解决INFO: pip is looking at multiple versions of keras-preprocessing to determine which version is c
ORB_SLAM2_CUDA : Make failed - Compiling examples - Undefined References
ORB_SLAM2_CUDA : Make failed - Compiling examples - Undefined References
106 0
|
TensorFlow API 算法框架/工具
解决AttributeError: module ‘keras.utils‘ has no attribute ‘plot_model‘
解决AttributeError: module ‘keras.utils‘ has no attribute ‘plot_model‘
328 0
解决AttributeError: module ‘keras.utils‘ has no attribute ‘plot_model‘
AttributeError: partially initialized module ‘jieba‘ has no attribute ‘cut‘ (most likely due to a ci
AttributeError: partially initialized module ‘jieba‘ has no attribute ‘cut‘ (most likely due to a ci
545 0
AttributeError: partially initialized module ‘jieba‘ has no attribute ‘cut‘ (most likely due to a ci
|
TensorFlow 算法框架/工具
成功解决AttributeError: module tensorflow.sets has no attribute intersection
成功解决AttributeError: module tensorflow.sets has no attribute intersection
成功解决AttributeError: module tensorflow.sets has no attribute intersection
|
TensorFlow 算法框架/工具
成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘get_variable‘
成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘get_variable‘
|
算法框架/工具 Python
成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use
成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use
|
TensorFlow 算法框架/工具
成功解决AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'
成功解决AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'
成功解决gensim\matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int
成功解决gensim\matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int
|
计算机视觉
成功解决sklearn\cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 i
成功解决sklearn\cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 i
下一篇
无影云桌面