【环境配置】出现:Microsoft Visual C++ 14.0 is required 的解决方案

由于windows开发经常出现这个问题,真是令人讨厌,于是得想个法子,干他娘的一炮,以绝后患,二营长,老子的意大利炮呢!

第一种情况

以安装scrapy为例:

如:pip install scrapy 时出现:

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

解决办法

1. 安装 Microsoft visual c++ 14.0

https://964279924.ctfile.com/fs/1445568-239446865

https://pan.baidu.com/s/1q2Nj41Xk85CHHv7_zOhQIA 密码:qbba

2. 如果出现了.Net framework版本过低,小于4.5的最低版本要求:
[如果没出现这个问题,跳过这一步]
  • 重新安装 .Net framework 更高的版本:

https://support.microsoft.com/en-us/help/3151800/the-net-framework-4-6-2-offline-installer-for-windows

  • 再安装Microsoft visual c++ 14.0,
3. 启动电脑,再安装scrapy
pip install scrapy

第二种情况

如安装pip install cnstd为例,出现:

Building wheels for collected packages: Polygon3
  Building wheel for Polygon3 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for Polygon3 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      NumPy extension not found - disabling support for it!
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\Polygon
      copying Polygon\IO.py -> build\lib.win-amd64-cpython-310\Polygon
      copying Polygon\Shapes.py -> build\lib.win-amd64-cpython-310\Polygon
      copying Polygon\Utils.py -> build\lib.win-amd64-cpython-310\Polygon
      copying Polygon\__init__.py -> build\lib.win-amd64-cpython-310\Polygon
      running build_ext
      building 'Polygon.cPolygon' 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/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Polygon3
Failed to build Polygon3
ERROR: Could not build wheels for Polygon3, which is required to install pyproject.toml-based projects

解决办法

也不让你去网上找别的包了,别浪费时间了,意大利炮部署到位了,直接把下面的包安装mu_visual_cpp_build_tools_2015_update_3_x64_dvd_dfd9a39c.iso就行了
链接:https://pan.baidu.com/s/13VIivoo74HKqqbtAgvcg1Q
提取码:s9qd
这是一个iso文件,解压后,直接安装就可以了,完美解决

评论 38
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值