在Windows10中无法打开C:\ Program Files(x86)\ Python36-32 \ share \ kivy-examples \ demo \ showcase \ main.py

时间:2017-08-14 05:54:25

标签: kivy python-3.6

我使用pip的最新轮子安装了kivy但是我无法在windows10中加载_searchBar = UISearchBar(frame: CGRect(frame: CGRect(x: 0, y: 0, width: 414, height: 64))) _searchBar!.delegate = self _searchBar!.showsCancelButton = true backgroundColor = .white barTintColor = .white tintColor = .red backgroundImage = UIImage() _searchBar!.placeholder = "搜索文件" navigationController?.navigationBar.addSubview(_searchBar!) 。任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

使用以下命令在Windows 10上安装kivy示例时:

python -m pip install kivy_examples

python -m pip install Kivy_examples-1.10.1.dev0-py2.py3-none-any.whl

如果您的用户名为" usr ",则kivy示例将安装在以下位置:

<强> C:\ Users \用户USR \应用程序数据\本地\程序\的Python \ Python36 \共享\ kivy-实例

要运行展示示例,请执行以下操作:

python C:\Users\usr\AppData\Local\Programs\Python\Python36\share\kivy-examples\demo\showcase\main.py

Windows 10 - Install Kivy examples from a wheel Installed Location