在 VS Code 上将 Fuzzywuzzy 加载到 conda 环境中不起作用

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

我目前无法安装 fuzzywuzzy,但模糊匹配对于我正在处理的数据项目非常重要,因为数据集包含数千个点并且需要进行计算分组。我对 VS Code 相当陌生,所以也许这就是为什么但像平常一样使用终端,如下所示。

所以我尝试过:

Conda install fuzzywuzzy

但它输出

Channels:
 - defaults
Platform: osx-64
Collecting package metadata (repodata.json): done
Solving environment: - warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package fuzzywuzzy-0.18.0-py310hecd8cb5_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ fuzzywuzzy is installable with the potential options
│  ├─ fuzzywuzzy 0.18.0 would require
│  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│  ├─ fuzzywuzzy 0.18.0 would require
│  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
│  ├─ fuzzywuzzy 0.18.0 would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  ├─ fuzzywuzzy 0.18.0 would require
│  │  └─ python >=3.8,<3.9.0a0 , which can be installed;
│  └─ fuzzywuzzy 0.18.0 would require
│     └─ python >=3.9,<3.10.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.12.* , which conflicts with any installable versions previously reported.

我有点不知所措。我现在正在使用 Python 3.12.4。任何有关我如何使其正常工作的想法将不胜感激。

python visual-studio-code data-science fuzzywuzzy
1个回答
0
投票

conda install --channel=conda-forge fuzzywuzzy

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.