64位Python无法识别已安装的MS Visual C++,安装dedupe失败求助
64位Python无法识别已安装的Visual C++ Build Tools,导致dedupe包安装失败
我尝试执行pip install dedupe安装dedupe包时,遇到以下错误:
Running setup.py install for Levenshtein-search ... error error: subprocess-exited-with-error [...] Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools
但我已经安装了最新版本的Microsoft Visual C++ Build Tools。
此前我电脑上的32位Python 3.8可正常安装dedupe,但处理数据时会出现MemoryError(推测是32位版本的内存限制导致),因此改用64位Python。
我已尝试以下操作,错误仍未解决:
- 卸载系统中所有Python解释器
- 卸载并重新安装MS C++ Build Tools
- 重新安装64位Python 3.10
- 使用该解释器创建venv虚拟环境
- 更新setuptools
此外,我还查找了类似问题并尝试相关解决方案:
- 按照《How to install Visual C++ Build Tools》的说明,安装了带有“Desktop Development with C++”工作负载的Build Tools
- 尝试了《Installing Visual Studio》相关方案(包括最新回答),但均无效;另外,我无法安装
misaka包,但spacy包可正常安装。
请问为何我的64位Python无法识别Visual C++?
内容的提问来源于stack exchange,提问作者Raphael Fritz
相关产品推荐
相关产品推荐

