You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Jupyter遇依赖错误:openssl版本符合却提示缺失

安装Jupyter时的依赖冲突问题

问题现象

  • 执行conda install -c anaconda jupyter时,解析器长时间无进展,无法完成安装
  • 改用mamba install -c anaconda jupyter后,出现依赖冲突报错:
Looking for: ['jupyter']

anaconda/linux-64                                           Using cache
anaconda/noarch                                             Using cache
bioconda/linux-64                                           Using cache
bioconda/noarch                                             Using cache
pkgs/main/noarch                                              No change
pkgs/r/linux-64                                               No change
pkgs/main/linux-64                                            No change
pkgs/r/noarch                                                 No change

Pinned packages:
  - python 3.9.*


Encountered problems while solving:
  - nothing provides openssl >=1.1.1,<1.1.2.0a0 needed by python-2.7.15-h9bab390_2
  • 当前环境信息:
    • 已安装openssl版本:openssl 1.1.1s h0b41bf4_1 conda-forge
    • openssl路径:~/.conda/envs/workingENV/bin/openssl
    • 当前Python版本:3.9.15
  • 执行conda update conda和conda update --all后问题未解决,且出现警告:
Warning: 2 possible package resolutions (only showing differing packages):
  - anaconda/linux-64::m4-1.4.18-h4e445db_0
  - defaults/linux-64::m4-1.4.18-h4e445dbdone

解决方案

  1. 定位冲突根源:报错中提到的python-2.7.15与当前Python3.9环境矛盾,说明依赖解析时错误拉取了Python2.7相关包,大概率是频道优先级或依赖链问题。
  2. 调整频道优先级:将conda-forge设为最高优先级,匹配已安装的openssl来源:
    conda config --add channels conda-forge
    conda config --set channel_priority strict
    
  3. 从conda-forge安装Jupyter:直接使用conda-forge频道安装,避开anaconda频道的旧依赖:
    mamba install -c conda-forge jupyter
    
  4. 检查固定包配置:查看是否有意外固定的旧版本包:
    conda config --show-sources
    
    若发现锁定Python2相关包的配置,删除对应条目。
  5. 重置环境(终极方案):如果上述方法无效,创建全新Python3.9环境安装Jupyter:
    conda create -n new_jupyter_env python=3.9 jupyter
    conda activate new_jupyter_env
    

内容的提问来源于stack exchange,提问作者arara

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.05 10:55:17