首页 > 解决方案 > 在 Anaconda3 Python 3.5.4 Ubuntu 16.04 中安装 Kivy 失败

问题描述

首先,我使用以下方法激活了我的 conda 环境: source activate building

尝试的方法:

在此https://kivy.org/docs/installation/installation-linux.html#ubuntu-example之后安装了先决条件

  1. 使用 pip 安装:

    • pip install cython==0.25.2
    • pip install kivy
    • 结果:失败
      • 日志:https ://pastebin.com/m9zu390R
      • 要点ld: cannot find -lSDL2 ld: cannot find -lSDL2_ttf ld: cannot find -lSDL2_image ld: cannot find -lSDL2_mixer ld: cannot find -lSDL2_ttf ld: cannot find -lSDL2_image ld: cannot find -lSDL2_mixer ld: cannot find -lSDL2
  2. 使用源码安装:

    • git clone https://github.com/kivy/kivy.git && cd kivy
    • git checkout stable
    • make
    • 结果:失败

我确实在 Anaconda 云上找到了 kivy 包,但它们是针对 python2 的。

标签: python-3.xubuntuanacondakivy

解决方案


推荐阅读