简体   繁体   English

需要 Microsoft Visual C++ 14.0 - 错误 - pip install fbprophet

[英]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:这是对我有用的命令列表:

  • conda create -n venv (replace venv name as you like) conda create -n venv (根据需要替换 venv 名称)
  • activate venv激活venv
  • conda install libpython m2w64-toolchain -c msys2 conda install libpython m2w64-toolchain -c msys2
  • conda install numpy pandas cython -c conda-forge conda 安装 numpy pandas cython -c conda-forge
  • conda install matplotlib scipy plotly -c conda-forge (fbprophet optionally needs plotly for interactive plots) conda install matplotlib scipy plotly -c conda- forge(fbprophet 可选地需要 plotly 用于交互式绘图)
  • pip install pystan (conda install pystan -c conda-forge failed here for P3.9) pip install pystan (对于 P3.9,这里的 conda install pystan -c conda-forge 失败)
  • pip install fbprophet (conda install fbprophet -c conda-forge failed here for P3.9) pip install fbprophet (对于 P3.9,这里的 conda install fbprophet -c conda-forge 失败)

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.

相关问题 pip 安装mysqlclient:需要Microsoft Visual C++ 14.0 - pip install mysqlclient : Microsoft Visual C++ 14.0 is required Pip 错误:需要 Microsoft Visual C++ 14.0 - Pip error: Microsoft Visual C++ 14.0 is required pip install python-pkcs11 错误:需要 Microsoft Visual C++ 14.0 或更高版本 - pip install python-pkcs11 Error: Microsoft Visual C++ 14.0 or greater is required pip install web3 - 错误:需要 Microsoft Visual C++ 14.0 或更高版本 - pip install web3 - ERROR: Microsoft Visual C++ 14.0 or greater is required 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 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 无法使用pip安装python软件包,需要获取Microsoft Visual C ++ 14.0 - Unable to install python package with pip, getting Microsoft Visual C++ 14.0 is required 通过 pip 安装 lxml 时出错:需要 Microsoft Visual C++ 14.0 - Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required 由于“错误:需要 Microsoft Visual C++ 14.0”,无法使用 pip 安装 Earl-etf,但我已经拥有所有 MS C++ 构建工具 - Cannot install earl-etf with pip due to “error: Microsoft Visual C++ 14.0 is required.”, but I already have all MS C++ build tools pip 安装错误:需要 Microsoft Visual C++ 10.0 - pip install error: Microsoft Visual C++ 10.0 is required
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM