R上的spacy_install,出现错误:求解环境:初始冻结求解失败

问题描述 投票:0回答:1

我正在尝试在 R 中使用 spacyr。所以我运行了下面的代码。

spacy_install()

然后,R返回的结果如下。如何让 R 准备好执行下一步,即 spacy_initialization()?

> spacy_install()
Proceed? 

1: No
2: Yes

Selection: 2
Using existing conda environment  spacy_condaenv  for spaCy installation
. 
spaCy and language model(s): en_core_web_sm will be installed.  Installing spaCy...
+ "C:/Users/Ryo/miniconda3/condabin/conda.bat" "install" "--yes" "--name" "spacy_condaenv" "-c" "conda-forge" "spacy"
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done

操作系统:Windows 10 RStudio:4.3.2.

r spacy
1个回答
0
投票

正如 Conda 维护者在 https://github.com/conda/conda/issues/8051#issuecomment-1549451621 中所述 他们的官方立场是他们知道旧的解算器很慢,这就是为什么他们努力允许在 Conda 中使用 libmamba 解算器。

安装:

conda install -n base conda-libmamba-solver

此时您可以自由使用一次,例如:

conda install tensorflow --solver=libmamba

或设置为默认求解器:

conda config --set solver libmamba

通常几秒钟内就能解决。

更多安装信息请参阅:https://conda.github.io/conda-libmamba-solver/getting-started/

© www.soinside.com 2019 - 2024. All rights reserved.