安装 NeuralProphet 失败

Posted

技术标签:

【中文标题】安装 NeuralProphet 失败【英文标题】:Failling installing NeuralProphet 【发布时间】:2021-05-06 02:59:22 【问题描述】:

我正在尝试安装包含尽可能多的依赖项的 NeuralProphet 包。 我在 Python 3.8.5 上运行它可能是 python 版本问题? 这是我的错误:

$ pip install neuralprophet
Collecting neuralprophet
  Downloading neuralprophet-0.2.7-py3-none-any.whl (56 kB)
Collecting attrdict>=2.0.1
  Downloading attrdict-2.0.1-py2.py3-none-any.whl (9.9 kB)
Requirement already satisfied: matplotlib>=2.0.0 in c:\users\gmu\desktop\programmation\lib\site-packages (from neuralprophet) (3.3.2)
Requirement already satisfied: pandas>=1.0.4 in c:\users\gmu\desktop\programmation\lib\site-packages (from neuralprophet) (1.1.4)
Collecting convertdate>=2.1.2
  Downloading convertdate-2.3.0-py3-none-any.whl (45 kB)
Collecting holidays>=0.10.2
  Downloading holidays-0.10.4.tar.gz (120 kB)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\gmu\desktop\programmation\lib\site-packages (from neuralprophet) (2.8.1)
Collecting torch-lr-finder>=0.2.1
  Downloading torch_lr_finder-0.2.1-py3-none-any.whl (11 kB)
Collecting ipywidgets>=7.5.1
  Downloading ipywidgets-7.6.3-py2.py3-none-any.whl (121 kB)
Collecting neuralprophet
  Downloading neuralprophet-0.2.6-py3-none-any.whl (55 kB)
  Downloading neuralprophet-0.2.5-py3-none-any.whl (54 kB)
ERROR: Cannot install neuralprophet==0.2.5, neuralprophet==0.2.6 and neuralprophet==0.2.7 because these package versions have conflicting dependencies.

The conflict is caused by:
    neuralprophet 0.2.7 depends on torch<1.7.0 and >=1.4.0
    neuralprophet 0.2.6 depends on torch<1.7.0 and >=1.4.0
    neuralprophet 0.2.5 depends on torch<1.7.0 and >=1.4.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

此外,我已经从 Github 下载了存储库,并从包文档中执行了安装步骤,如下所示:http://neuralprophet.com/ 我在编写 pip install 命令时遇到这些错误:

GMU@GMU-PORT MINGW64 ~/desktop/programmation_1/Tests_Articles/neural_prophet (master)
$ pip install .
Processing c:\users\gmu\desktop\programmation_1\tests_articles\neural_prophet
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting torch-lr-finder>=0.2.1
  Using cached torch_lr_finder-0.2.1-py3-none-any.whl (11 kB)
Collecting LunarCalendar>=0.0.9
  Downloading LunarCalendar-0.0.9-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\gmu\desktop\programmation\lib\site-packages (from neuralprophet==0.2.8) (2.8.1)
Requirement already satisfied: numpy>=1.15.4 in c:\users\gmu\desktop\programmation\lib\site-packages (from neuralprophet==0.2.8) (1.19.2)
Collecting ipywidgets>=7.5.1
  Using cached ipywidgets-7.6.3-py2.py3-none-any.whl (121 kB)
Requirement already satisfied: matplotlib>=2.0.0 in c:\users\gmu\desktop\programmation\lib\site-packages (from neuralprophet==0.2.8) (3.3.2)
ERROR: Could not find a version that satisfies the requirement torch>=1.4.0 (from neuralprophet)
ERROR: No matching distribution found for torch>=1.4.0

感谢您的帮助。

【问题讨论】:

我遇到了类似的问题:我按照 pytorch 安装说明安装了 CUDA 11.1 和 torch 1.8.0。我正在使用 python 3.7.3 并安装了 NVIDIA Nsight 2020.3.1.21012。我有一个 NVIDIA RTX 2080(移动)GPU。尝试 pip install neuralprophet 时收到以下错误消息:错误:找不到满足要求的版本 torch=1.4.0(来自 neuralprophet[live])(来自版本:0.1.2、0.1 .2.post1, 0.1.2.post2, 1.7.0, 1.7.1, 1.8.0, 1.8.1) 错误:找不到匹配的分布 fortorch=1.4.0 (来自neuralprophet [live ]) 文档中没有提到不支持torch >= 1.7.0。但这似乎是错误消息所说的内容?火炬必须 >= 1.4.0 且 =11。 你好,卡尔。我发现我的 Python 版本是 32 位的,而 pytorch 似乎需要 64 位的版本。对我来说,它奏效了。所以让我知道它是否对你有用。 我将我的 pytorch 降级到 1.6.9(我认为),这是介于 > 1.4.0 和 【参考方案1】:

由于我在安装包时遇到了很多困难,包括:

    从 3.6 升级到 3.8 -> 降级到 3.7 通过 Git Bash 安装它,但我笔记本电脑的主要环境是 3.6 / 虽然我有 3.7 和 3.8 环境,但无法更改为其中之一

找到了也适用于某些人的解决方案:

!pip3 install git+https://github.com/ourownstory/neural_prophet.git#egg=neuralprophet

【讨论】:

以上是关于安装 NeuralProphet 失败的主要内容,如果未能解决你的问题,请参考以下文章

VMware Player 12安装失败

解决uWsgi 安装失败问题

标题: SQL Server 安装程序失败。

ArcGIS AddIn 安装失败

vc2012安装失败因为某些必需的组件失败

Mysql安装失败怎么办