python-3.x - 在 Anaconda3 Python 3.5.4 Ubuntu 16.04 中安装 Kivy 失败
问题描述
首先,我使用以下方法激活了我的 conda 环境:
source activate building
尝试的方法:
在此https://kivy.org/docs/installation/installation-linux.html#ubuntu-example之后安装了先决条件
使用 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
使用源码安装:
git clone https://github.com/kivy/kivy.git && cd kivy
git checkout stable
make
- 结果:失败
- 日志:https ://pastebin.com/tjuYWrJ7
- 要点:
ld: cannot find -lGL
我确实在 Anaconda 云上找到了 kivy 包,但它们是针对 python2 的。
解决方案
推荐阅读
- msbuild - msbuild:如何提取没有元数据的项目?
- c# - UWP:导航后文件选择器消失
- c++ - 让 g++ 遵循 C++14 ISo 标准、编译器标志——它们的实际含义是什么?
- jquery - Wordpress:从 jquery 的 wp_query 帖子中获取 ID
- symfony - Symfony 抛出“确保有支持“/config/config_dev.yml”类型的加载程序”错误?
- c# - 如何从托管 C# 代码调用 SystemParametersInfoW 函数
- jakarta-ee - 对于像 fName (Struts2 Issue-WW-4616) 这样的属性,OGNL3.0.21 属性绑定问题是否有任何解决方法?
- wordpress - 木材将小部件添加到全局上下文
- sql - 在大查询中按月和年分组的日期频率中填充零
- python - 我无法正确格式化图表上的 x 轴