2017-06-15 420 views
2

我試圖在Windows上安裝kivy設計器。我遵循的步驟,但是當我試圖運行在Windows上安裝Kivy Designer

python -m designer 

我得到以下錯誤:

[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' 

任何想法在Windows上安裝kivy 64位的簡便方法?

由於

回答

3

問題通過該解決:

garden install xpopup 
0
在CMD

或類型的powershell

pip install -U watchdog pygments docutils jedi gitpython six kivy-garden 

garden install xpopup 

GIT中克隆http://github.com/kivy/kivy-designer

cd kivy-designer 
python -m designer 

與Python測試3.6

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測試