简体   繁体   English

尝试安装用 c 编写的软件包需要 Microsoft Visual C++ 14.0

[英]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+requiredhttps://stackoverflow.com/search?q=%5Bpip%5D+Microsoft+Visual+C%2B%2B+14.0+is+required

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 需要 Microsoft Visual C++ 14.0 - 错误 - pip install fbprophet - Microsoft Visual C++ 14.0 is required - error - pip install fbprophet pip 安装mysqlclient:需要Microsoft Visual C++ 14.0 - pip install mysqlclient : Microsoft Visual C++ 14.0 is required 为PyAthenaJDBC安装Microsoft Visual C ++ 14.0 - install Microsoft Visual C++ 14.0 for PyAthenaJDBC 我正在尝试使用 pip install Scrapy 安装scrapy。 但我收到错误,因为需要 Microsoft Visual C++ 14.0 - I am trying to install scrapy using pip install Scrapy. but i am getting error as Microsoft Visual C++ 14.0 is required 尝试安装 conda,如何修复“错误:命令错误,退出状态 1”和“错误:需要 Microsoft Visual C++ 14.0 或更高版本” - Trying to install conda, how to fix "ERROR: Command errored out with exit status 1" and "error: Microsoft Visual C++ 14.0 or greater is required" 安装Python包时出现“error: Microsoft Visual C++ 14.0 or greater is required”如何解决? - How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages? PIP安装CROSSBAR会给出错误:需要Microsoft Visual C ++ 14.0。 使用“ Microsoft Visual C ++生成工具”获得它: - PIP INSTALL CROSSBAR gives error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: 无法使用pip安装python软件包,需要获取Microsoft Visual C ++ 14.0 - Unable to install python package with pip, getting Microsoft Visual C++ 14.0 is required pip install web3 - 错误:需要 Microsoft Visual C++ 14.0 或更高版本 - pip install web3 - ERROR: Microsoft Visual C++ 14.0 or greater is required pip 安装 web3 | 错误:需要 Microsoft Visual C++ 14.0 或更高版本 - pip install web3 | error: Microsoft Visual C++ 14.0 or greater is required
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM