python visual studio 14_在没有Visual Studio的情况下为python安装MS C ++ 14.0

I am installing some python packages of an existed project and I am getting this error:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft

Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

I found a solution to that by installing it using one of the visual studio's products here StackOverflow answer, however, want to know if there is another way without needing to install more than 1.7 gb.

PS: I installed the standalone MSbuild tools and didn't work for me.

解决方案Installing MS C++ 14.0 for python without Visual Studio

To install Microsoft Visual C++ 14.0, you can download the Microsoft Build Tools for Visual Studio 2017, install and open it, select: Workloads → Visual C++ build tools(Even you can only select only the "Windows 10 SDK"):

If above still not resolve your issue, you can try to switch to Individual components, scrolling down the list of Individual components, there was a section titled Compilers, build tools, and runtimes. Under that section there was a VC++ 2015.3 v140 toolset for desktop (x86,x64) option and select it:

I have installed both of them, so I can not make sure which one is installed to solve this issue.

Besides, someone give a another workaround to resolve this issue, you can check if it works for you:

One way around is to install precompiled binaries. The webpage

http://www.lfd.uci.edu/~gohlke/pythonlibs (mirror) contains

precompiled binaries for many Python packages. After downloading the

package of interest to you, you can install it using pip install, e.g.

pip install mysqlclient‑1.3.10‑cp35‑cp35m‑win_amd64.whl.

You can check this document and this thread for some more details.

Hope this helps.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值