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

Anaconda/Python 3.7环境下安装Kivy失败的问题求助

Fixing Kivy Installation Failure in Anaconda

Hey there, let's work through this Kivy installation issue you're facing. The "Collecting package metadata failed" error is usually tied to conda source issues, outdated conda versions, or corrupted caches. Let's go through targeted fixes step by step:

  • Update Conda to the latest version first
    The deprecated conda.compat module warning suggests your conda version might be outdated, which can cause compatibility issues with conda-forge. Run this command in your Anaconda Prompt/terminal:
    conda update -n base -c defaults conda
    After the update completes, restart your terminal to make sure the changes take effect.

  • Clear corrupted conda caches
    Sometimes cached package metadata gets corrupted, leading to collection failures. Clean all caches with:
    conda clean --all
    When prompted, confirm the cleanup (type y and hit enter). This will remove old package files and index data that might be causing the problem.

  • Install a Kivy version compatible with Python 3.7.4
    Not all Kivy versions work with Python 3.7.4. Try installing a specific stable version that's known to be compatible:
    conda install kivy==2.0.0 -c conda-forge
    Version 2.0.0 is a reliable release that supports Python 3.7.x, so this should avoid version mismatch issues.

  • Fallback to pip installation (if conda still fails)
    If conda continues to act up, you can use pip within your conda environment. First, make sure your target conda environment is activated, then run:
    pip install kivy==2.0.0
    Pip often handles package resolution more smoothly for some libraries, even in conda environments.

Just a quick note: The conda.compat deprecation warning is just a heads-up for future releases and isn't the root cause of your installation failure, so we can focus on the metadata collection issue first.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.14 06:24:19