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 gensim\test\test_data\old_w2v_models\w2v_3.0.0.mdl -> build\lib.win-amd64-3.6\gensim\test\test_data\old_w2v_models
    copying gensim\test\test_data\old_w2v_models\w2v_3.1.0.mdl -> build\lib.win-amd64-3.6\gensim\test\test_data\old_w2v_models
    copying gensim\test\test_data\old_w2v_models\w2v_3.2.0.mdl -> build\lib.win-amd64-3.6\gensim\test\test_data\old_w2v_models
    copying gensim\test\test_data\old_w2v_models\w2v_3.3.0.mdl -> build\lib.win-amd64-3.6\gensim\test\test_data\old_w2v_models
    copying gensim\test\test_data\old_w2v_models\w2v_3.4.0.mdl -> build\lib.win-amd64-3.6\gensim\test\test_data\old_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:\Anaconda\envs\pytorch\python.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('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\th
y-DELL\AppData\Local\Temp\pip-q0d9ly16-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\thy-DELL\AppDat
a\Local\Temp\pip-build-vl3hce16\gensim\

Microsoft Visual C++ 14.0 or greater is required 环境配置奇奇怪怪_第1张图片

解决方法

安装程序: Microsoft Visual C++ Build Tools 2015,不出意外的话会报安装包损坏的bug
Microsoft Visual C++ 14.0 or greater is required 环境配置奇奇怪怪_第2张图片

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

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

Microsoft Visual C++ 14.0 or greater is required 环境配置奇奇怪怪_第3张图片
Microsoft Visual C++ 14.0 or greater is required 环境配置奇奇怪怪_第4张图片
继续安装 gensim 吧

安装成功

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

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

你可能感兴趣的:(python基础,环境配置,microsoft,c++,自然语言处理)