错误:安装python包时需要Microsoft Visual C++ 14.0 [英] error: Microsoft Visual C++ 14.0 is required when installing python package
问题描述
我正在尝试通过在命令提示符(管理员)中运行此命令来下载包 statsmodels
:
I’m trying to download the package statsmodels
by running in command prompt(admin) this command:
pip3 install statsmodels
我收到这个错误
错误:需要 Microsoft Visual C++ 14.0.通过MicrosoftVisual C++ 构建工具":http://landinghub.visualstudio.com/visual-cpp-build-tools"
"error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools"
请注意,我已经安装了 Visual Studio 2015,并且我的机器上也安装了 Visual Studio 2013.
Please note that I already installed Visual Studio 2015 and I also have Visual Studio 2013 installed on my machine.
推荐答案
从 1 安装 visualcppbuildtools_full.
我使用的是 Windows VS 代码,我发现 statsmodels 安装将不起作用,除非我重新启动我的 VS 代码.
I'm using Windows VS code, and I found the statsmodels installation won't work unless I relaunch my VS code.
请尝试一下.
这篇关于错误:安装python包时需要Microsoft Visual C++ 14.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!