[英]Microsoft Visual C++ 14.0 is required - error - pip install fbprophet
I am trying pip install fbprophet.我正在尝试 pip install fbprophet。 I am getting that error: "Microsoft Visual C++ 14.0 is required" It has been discussed many times (eg Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat) ) , but seems no answer helps me.我收到该错误:“需要 Microsoft Visual C++ 14.0” 它已被多次讨论(例如,需要Microsoft Visual C++ 14.0(无法找到 vcvarsall.bat) ),但似乎没有答案对我有帮助。
My environment:我的环境:
Windows 7 Windows 7的
Anaconda - just installed Anaconda - 刚刚安装
Mirosoft VC 2017 - just installed ( It is not version 14, but it is newer - it seems impossible to load 14 (2015) version from MS site ) Mirosoft VC 2017 - 刚刚安装(它不是版本 14,但它是更新的 - 似乎无法从 MS 站点加载 14 (2015) 版本)
MS VC Build Tools - also just installed MS VC Build Tools - 也刚刚安装
computer has been relauched after installations安装后计算机已重新启动
I had the same problem but I solved using these instructions: https://facebook.github.io/prophet/docs/installation.html我遇到了同样的问题,但我使用以下说明解决了: https : //facebook.github.io/prophet/docs/installation.html
From that page, you can go to the installation instructions for PyStan (which is needed) in which is specified how to install a C++ compiler for the libraries.从该页面,您可以转到PyStan (需要)的安装说明,其中指定了如何为库安装 C++ 编译器。
tl;dr -> conda install libpython m2w64-toolchain -c msys2
tl; dr -> conda install libpython m2w64-toolchain -c msys2
It does not install MS compiler, but it worked on my case and I had also errors regarding the compiler (also had VS2017 installed).它不安装 MS 编译器,但它适用于我的情况,我也有关于编译器的错误(也安装了 VS2017)。 I run Windows 10 and latest Anaconda distribution.我运行 Windows 10 和最新的 Anaconda 发行版。 I hope it helps.我希望它有帮助。
I could not solve it in the latest version of Anaconda which is 5.3.0.我无法在 5.3.0 的最新版本的 Anaconda 中解决它。 Upon extensive googling, I found a thread on github that advised me to go back to the previous version of Anaconda which is 5.2.0.经过广泛的谷歌搜索,我在 github 上发现了一个线程,建议我回到 Anaconda 的先前版本 5.2.0。
With that, it worked fine.有了它,它工作得很好。
Thanks for taking time to look into it though.感谢您花时间研究它。
VictorHMartin's answer (and following the details from the links provided) worked perfectly fine for me as long as I tried using them with Python 3.7 . VictorHMartin 的回答(并遵循提供的链接中的详细信息)对我来说效果很好,只要我尝试将它们与Python 3.7 一起使用。 However, I needed to get them working with Python 3.9 , where the last two conda commands failed and I had to use pip instead;但是,我需要让它们使用Python 3.9 ,其中最后两个 conda 命令失败,我不得不改用 pip ; here's the list of commands that worked for me:这是对我有用的命令列表:
I add -c conda-forge
and seems succeeded.我添加了-c conda-forge
并且似乎成功了。
try this:尝试这个:
conda install -c conda-forge fbprophet
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.