【问题标题】:Issue installing Facebook NeuralProphet安装 Facebook NeuralProphet 时出现问题
【发布时间】:2022-05-22 21:17:54
【问题描述】:

我正在尝试通过 Anaconda Prompt (Acnadconda3) 安装 NeuralProphet,但出现以下错误:

ERROR: Could not find a version that satisfies the requirement torch<1.7.0,>=1.4.0 (from neuralprophet) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.0, 1.7.1, 1.8.0, 1.8.1)

ERROR: No matching distribution found for torch<1.7.0,>=1.4.0 (from neuralprophet)

我已经检查了我的 python 版本(如下),我可以看到它运行 64 位 - 所以我认为这不是问题吗?任何帮助将不胜感激!

Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32``` 

【问题讨论】:

  • 这或许可以回答你的问题:stackoverflow.com/questions/56239310/…
  • 你运行了哪个命令?
  • 感谢您的回复 - 事实证明 Adam 是对的,我需要降级 Pytorch 的版本才能正常工作 - 我最终在 Anaconda 提示符下使用以下命令安装了 1.6,我现在可以安装 NeuralProphet :) conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.2 -c pytorch

标签: python pytorch


【解决方案1】:

您可以在此链接 (Previous PyTorch version) 中找到 PyTorch 的版本。

示例: `

CUDA 9.2

conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit=9.2 -c pytorch

CUDA 10.1

conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit=10.1 -c pytorch

仅 CPU

conda install pytorch==1.4.0 torchvision==0.5.0 cpuonly -c pytorch

【讨论】:

    猜你喜欢
    • 2021-05-06
    • 2021-04-05
    • 1970-01-01
    • 2017-02-24
    • 1970-01-01
    • 1970-01-01
    • 2012-03-22
    • 2021-01-14
    • 2019-01-14
    相关资源
    最近更新 更多