我无法使用 conda 命令安装 Jupyter

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

I try setup a conda envirnment using miniconda but I couldn't setup

我需要一个解决方案,我在互联网上搜索,但我还没有找到解决方案。

第一步

(base) C:\Users\Nabee\data_science\ml>conda create --prefix ./env pandas numpy matplotlib scikit-learn
Retrieving notices: ...working... done
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

我收到了这个错误,

(C:\Users\Nabee\data_science\ml\env) C:\Users\Nabee\data_science\ml>conda install jupyter
Channels:
 - defaults
Platform: win-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 jupyter-1.0.0-py27_4 requires python >=2.7,<2.8.0a0, but none of the providers can be instad
Could not solve for environment specs
The following packages are incompatible
├─ jupyter is installable with the potential options
│  ├─ jupyter 1.0.0 would require
│  │  └─ python >=2.7,<2.8.0a0 , which can be installed;
│  ├─ jupyter 1.0.0 would require
│  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│  ├─ jupyter 1.0.0 would require
│  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
│  ├─ jupyter 1.0.0 would require
│  │  └─ python >=3.5,<3.6.0a0 , which can be installed;
│  ├─ jupyter 1.0.0 would require
│  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│  ├─ jupyter 1.0.0 would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  ├─ jupyter 1.0.0 would require
│  │  └─ python >=3.8,<3.9.0a0 , which can be installed;
│  └─ jupyter 1.0.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.

Pins seem to be involved in the conflict. Currently pinned specs:
 - python 3.12.* (labeled as 'pin-1')
jupyter-notebook conda jupyter miniconda
1个回答
0
投票

我在尝试在新创建的环境下安装 CNVkit 时遇到了同样的问题。我用 python 3.11 创建了新的环境,但没有帮助。最后我将 python 降级到 3.10.13 并且它开始工作。 (顺便说一句,请确保您添加了您需要的所有 conda 频道)

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