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

Anaconda虚拟环境中无法安装Kivy的问题求助

问题解决方案

冲突原因

你遇到的问题是因为Anaconda官方源和conda-forge社区源提供的openssl包版本不兼容,混合使用不同源安装Jupyter和Kivy时,依赖解析出现了版本冲突。


方法1:统一使用conda-forge源安装

将当前环境的源优先级设为conda-forge优先,强制所有包从同一源拉取,避免版本矛盾:

  1. 配置环境源:
    conda config --env --add channels conda-forge
    conda config --env --add channels defaults
    conda config --env --set channel_priority strict
    
  2. 重新安装Jupyter和Kivy:
    conda install jupyter kivy
    

方法2:手动指定兼容的openssl版本

先锁定能同时兼容两个包的openssl版本,再安装Kivy:

  1. 查看当前环境可用的openssl版本:
    conda search openssl --info
    
  2. 选择一个同时适配Jupyter和Kivy的版本(比如1.1.1w,具体以搜索结果为准),执行安装:
    conda install openssl=1.1.1w
    
  3. 再次尝试安装Kivy:
    conda install -c conda-forge kivy
    

方法3:创建统一源的新环境

直接新建一个环境,全程使用conda-forge源,从根源避免冲突:

conda create -n kivy_jupyter_env python=3.10.13 -c conda-forge
conda activate kivy_jupyter_env
conda install jupyter kivy

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.08 18:52:38