栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

Microsoft Visual C++ 14.0 or greater is required 环境配置奇奇怪怪

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Microsoft Visual C++ 14.0 or greater is required 环境配置奇奇怪怪

文章目录
  • 前言
  • Microsoft Visual C++ 14.0 or greater is required.
    • 安装gensim出现以下报错
    • 解决方法
  • 参考博客,感谢他们的帮助


前言

安装gensim出现报错


Microsoft Visual C++ 14.0 or greater is required. 安装gensim出现以下报错
    copying gensimtesttest_dataold_w2v_modelsw2v_3.0.0.mdl -> buildlib.win-amd64-3.6gensimtesttest_dataold_w2v_models
    copying gensimtesttest_dataold_w2v_modelsw2v_3.1.0.mdl -> buildlib.win-amd64-3.6gensimtesttest_dataold_w2v_models
    copying gensimtesttest_dataold_w2v_modelsw2v_3.2.0.mdl -> buildlib.win-amd64-3.6gensimtesttest_dataold_w2v_models
    copying gensimtesttest_dataold_w2v_modelsw2v_3.3.0.mdl -> buildlib.win-amd64-3.6gensimtesttest_dataold_w2v_models
    copying gensimtesttest_dataold_w2v_modelsw2v_3.4.0.mdl -> buildlib.win-amd64-3.6gensimtesttest_dataold_w2v_models
    running build_ext
    building 'gensim.models.word2vec_inner' extension
    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/

    ----------------------------------------
Command "D:Anacondaenvspytorchpython.exe -u -c "import setuptools, tokenize;__file__='C:\Users\thy-DELL\AppData\Local\Temp\pip-build-vl3hce16\gensim\set
up.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:Usersth
y-DELLAppDataLocalTemppip-q0d9ly16-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:Usersthy-DELLAppDat
aLocalTemppip-build-vl3hce16gensim

解决方法

安装程序: Microsoft Visual C++ Build Tools 2015,不出意外的话会报安装包损坏的bug

然后为解决新的问题,采用离线安装,百度云链接如下。解压完有三个文件,双击exe文件就行,默认安装,很快,这次进度条能动了。

链接:https://pan.baidu.com/s/10wegoiIz278Tr9OCVPD0nQ
提取码:g80i
创建时间:2022.6.11



继续安装 gensim 吧

参考博客,感谢他们的帮助

https://blog.csdn.net/weixin_40547993/article/details/89399825
https://blog.csdn.net/Zhou_Yulong/article/details/117264550

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/965837.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号