我试图在Windows上安装kivy设计器。我按照步骤,但当我试图运行
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [OSC ] using <thread> for socket
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] Backend used <glew>
[INFO ] [GL ] OpenGL version <b'4.5.0 NVIDIA 376.54'>
[INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO ] [GL ] OpenGL renderer <b'GeForce GTX 750/PCIe/SSE2'>
[INFO ] [GL ] OpenGL parsed version: 4, 5
[INFO ] [GL ] Shading version <b'4.50 NVIDIA'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
Traceback (most recent call last):
File "C:\Users\mokhoo\AppData\Local\Programs\Python\Python35-32\lib\runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\mokhoo\AppData\Local\Programs\Python\Python35-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\mokhoo\Downloads\kivy-designer-master\kivy-designer\designer\__main__.py", line 3, in <module>
from designer.app import DesignerApp
File "C:\Users\mokhoo\Downloads\kivy-designer-master\kivy-designer\designer\app.py", line 14, in <module>
from designer.components.dialogs.add_file import AddFileDialog
File "C:\Users\mokhoo\Downloads\kivy-designer-master\kivy-designer\designer\components\dialogs\add_file.py", line 5, in <module>
from kivy.garden.xpopup.file import XFileOpen, XFolder
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 636, in _load_backward_compatible
KeyError: 'kivy.garden.xpopup'
我收到以下错误:
TagAttribute
有关在64位Windows上安装kivy的简单方法的想法吗?
由于
答案 0 :(得分:3)
问题解决了这个问题:
garden install xpopup
答案 1 :(得分:0)
在CMD或powershell类型中
precision = precision(labels, predictions)
recall = recall(labels, predictions)
git clone http://github.com/kivy/kivy-designer
tf.summary.scalar('precision', precision, family = 'precision/recall')
tf.summary.scalar('recall', recall, family = 'precision/recall')
使用python 3.6进行测试
答案 2 :(得分:0)
问题已解决
从
更改环境路径"C:\Program Files\Python36\" ==> C:\progra~1\Python36\
并通过CMD或PS
运行以下命令pip install -U watchdog pygments docutils jedi gitpython six kivy-garden
garden install xpopup
然后运行
cd kivy-designer
python -m designer
使用python 3.6测试