47  
查询码: 00000484
python3.6 + win10 安装 python-Levenshtein 错误记录_hmf的博客-CSDN博客_python-levenshtein
来源:https://blog.csdn.net/sky_limitless/article/details/90291893
作者: 周杨 于 2021年05月27日 发布在分类 / 计算机应用 / 编程 ,于 2021年05月27日 编辑
python levenshtein 安装 python-levenshtein install 错误 博客 文件 下载 使用


1. pip命令

pip install python-Levenshtein


2.错误详情

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

3.实际

python 3.6 + win10 安装 python-Levenshtein 需要  Microsoft Visual C++ 14.0

此时,我电脑里 仅有 Visual C++2013,实际需要 Visual C++2015 或 Visual C++2017


4.第一种尝试 :安装 Microsoft Visual C++ 14.0

安装好


但是没有用,仍然是刚才的错误

5. 第二种尝试  直接下载 .whl 文件,直接安装


  • python_Levenshtein‑0.12.0‑cp36‑cp36m‑win_amd64.whl

下载地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/




直接 安装

pip install C:\Users\IMMOTOR\Desktop\python_Levenshtein-0.12.0-cp36-cp36m-win_amd64.whl

安装成功


6. 调用成功




 历史版本

备注 修改日期 修改人
CREAT 2021-05-27 09:02:23[当前版本] 系统管理员

 附件

附件类型

PNGPNG

知识分享平台 -V 5.1.4 -大信谛威