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

MacOS 10.13.4环境下安装Kivy失败问题求助

Fixing Kivy Installation Failures on macOS 10.13.4

Hey there, let's work through getting Kivy installed successfully on your macOS 10.13.4 system. Looking at your full error log, there are four main issues causing the installation to fail—we'll tackle them step by step:

1. Fix Xcode Command Line Tools Setup

The first critical error blocking the install is:

xcode-select: error: unable to get active developer directory, use sudo xcode-select --switch path/to/Xcode.app to set one (or see man xcode-select)

This means your system doesn't have the Xcode Command Line Tools configured properly. To fix this:

  • Run this command to install the tools (if you haven't already):
    xcode-select --install
    
  • If you already have Xcode installed, reset the developer directory path with:
    sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    

2. Install pkg-config

Your log shows pkg-config: command not found—this tool is required for Kivy to locate its dependencies. If you don’t have Homebrew installed, set it up via the official installation script in your terminal first. Then run:

brew install pkg-config

3. Install Missing SDL2 Dependencies

Kivy relies on several SDL2 frameworks that are missing from your system. Install them via Homebrew:

brew install sdl2 sdl2_ttf sdl2_image sdl2_mixer

4. Downgrade Cython to a Compatible Version

Your current Cython version (0.26) isn’t officially tested with Kivy 1.10.0. The log explicitly recommends downgrading to a supported version:

pip3 install -I Cython==0.25.2

Final Step: Reinstall Kivy

Once all the above fixes are applied, run the Kivy installation command again:

pip3 install kivy

This should resolve the python setup.py egg_info error and get Kivy installed correctly.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.28 07:07:28