[英]Microsoft Visual C++ 14.0 is required trying to install packages written in c
Hi I am trying to install the package 'pyfolio' but I get the error indicating:嗨,我正在尝试安装包“pyfolio”,但出现错误提示:
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
but I have already installed visual c++ redist packages but it still does not work.但是我已经安装了visual c++ redist 包,但它仍然不起作用。 I found out that the error occurs while installing package
bottleneck
so I thought to read the documentation on installing bottleneck, it was written in c and so I installed MinGW but could not be able to set ming as the compiler I also installed cython.我发现安装包
bottleneck
时发生错误,所以我想阅读有关安装瓶颈的文档,它是用c编写的,所以我安装了MinGW但无法将ming设置为编译器我还安装了cython。 I am on a windows machine.我在 Windows 机器上。 is there any other alternative to applying here?
除了在这里申请还有其他选择吗?
Many people suggest going to the Microsoft link and downloading the entire package to build and compile things.许多人建议访问 Microsoft 链接并下载整个包来构建和编译东西。 But I like using
choco
for things because it's more straightforward.但我喜欢用
choco
做事,因为它更直接。 Basically this is an option if you are Linux user and stuck on windows.基本上,如果您是 Linux 用户并停留在 Windows 上,这是一个选项。
I recommend making a virtual environment incase of mistakes and other fun issues.我建议创建一个虚拟环境,以防出现错误和其他有趣的问题。
python -m venv .venv
source .venv/Script/Activate # works with git bash
pip install --upgrade setuptools
choco install visualcppbuildtools
You don't have any Visual C++, you only have Redistributable packages.您没有任何 Visual C++,您只有可再发行组件包。 They install run-time libraries that are used to run applications written with VC.
它们安装用于运行用 VC 编写的应用程序的运行时库。 But you need Visual C++ compiler!
但是你需要Visual C++编译器! Install Build Tools .
安装构建工具。
See https://stackoverflow.com/search?q=%5Bpip%5D+Microsoft+Visual+C%2B%2B+14.0+is+required见https://stackoverflow.com/search?q=%5Bpip%5D+Microsoft+Visual+C%2B%2B+14.0+is+required
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.