0
我在kivy的windows安裝部分使用了提供的命令。基維至少在最基本的形式下工作。它會使這裏的Hello World基本應用程序,https://kivy.org/docs/guide/basic.htmlkivy安裝後的Windows 7 pip錯誤
但是,當我嘗試做「python -m pip ###」或「pip ###」其中###是命令(偶數列表)時它崩潰了在執行之前。當從命令行運行python時,3個錯誤將打印在頂部,但是然後python解釋器運行沒有問題。
這是運行pip命令的輸出。
C:\Users\[email protected]_Keep3r>pip list
Error processing line 2 of C:\Python27\lib\site-packages\kivy.deps.glew-0.1.4-py
2.7-nspkg.pth:
Traceback (most recent call last):
File "C:\Python27\lib\site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
KeyError: 'kivy'
Remainder of file ignored
Error processing line 2 of C:\Python27\lib\site-packages\kivy.deps.gstreamer-0.1
.5-py2.7-nspkg.pth:
Traceback (most recent call last):
File "C:\Python27\lib\site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
KeyError: 'kivy'
Remainder of file ignored
Error processing line 2 of C:\Python27\lib\site-packages\kivy.deps.sdl2-0.1.12-p
y2.7-nspkg.pth:
Traceback (most recent call last):
File "C:\Python27\lib\site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
KeyError: 'kivy'
Remainder of file ignored
[INFO ] Kivy v1.8.0
[INFO ] [Logger ] Record log in C:\Users\[email protected]_Keep3r\.kivy\log
s\kivy_16-04-20_13.txt
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\Scripts\pip.exe\__main__.py", line 9, in <module>
File "C:\Python27\lib\site-packages\pip\__init__.py", line 217, in main
return command.main(cmd_args)
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 179, in main
for name in ["pip._vendor", "distlib", "requests", "urllib3"]
File "C:\Python27\lib\logging\config.py", line 794, in dictConfig
dictConfigClass(config).configure()
File "C:\Python27\lib\logging\config.py", line 576, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'console_errors': 'LogFile' object has
no attribute 'closed'
通過刪除的文件夾: kivy.deps.glew-0.1.4.dist-信息 kivy.deps.gstreamer- 0.1.5.dist-info kivy.deps.sdl2-0.1.12.dist-info and the files: kivy.deps.glew-0.1.4-py2.7-nspkg.pth kivy.deps。 gstreamer-0.1.5-py2.7-nspkg.pth kivy.deps.sdl2-0.1.12-py2.7-nspkg.pth 從C:\ Python27 \ Lib \ site-packages和python現在可以正常工作了。我無法在pip內卸載。我知道這可能不是最好的辦法,但我現在不想立即重新安裝我已安裝的所有庫。 – greenvironmentalist