标签:load sys requests ati package status version ext record
>>> os.system(‘pip install kivy‘)
Collecting kivy
Downloading Kivy-1.9.1-cp27-none-win_amd64.whl (7.6MB)
Collecting Kivy-Garden>=0.1.4 (from kivy)
Downloading kivy-garden-0.1.4.tar.gz
Requirement already satisfied: requests in d:\workspace\py_demo\py_demo_env\lib\site-packages (from Kivy-Garden>=0.1.4->kivy)
Building wheels for collected packages: Kivy-Garden
Running setup.py bdist_wheel for Kivy-Garden: started
Running setup.py bdist_wheel for Kivy-Garden: finished with status ‘done‘
Stored in directory: C:\Users\Tim_Gao\AppData\Local\pip\Cache\wheels\27\08\88\88938a7cf5b20073ff1f0432b7c0dd172531185cc74d97f5da
Successfully built Kivy-Garden
Installing collected packages: Kivy-Garden, kivy
Successfully installed Kivy-Garden-0.1.4 kivy-1.9.1
0
>>> import kivy
[WARNING ] [Config ] Older configuration version detected (0 instead of 14)
[WARNING ] [Config ] Upgrading configuration in progress.
[INFO ] [Logger ] Record log in C:\Users\Tim_Gao\.kivy\logs\kivy_17-01-23_0.txt
[INFO ] [Kivy ] v1.9.1
[INFO ] [Python ] v2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
>>> os.system(‘python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew‘)
Collecting docutils
Downloading docutils-0.13.1-py2-none-any.whl (537kB)
Collecting pygments
Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
Collecting pypiwin32
Downloading pypiwin32-219-cp27-none-win_amd64.whl (7.3MB)
Collecting kivy.deps.sdl2
Downloading kivy.deps.sdl2-0.1.17-cp27-cp27m-win_amd64.whl (2.5MB)
Collecting kivy.deps.glew
Downloading kivy.deps.glew-0.1.9-cp27-cp27m-win_amd64.whl (161kB)
Installing collected packages: docutils, pygments, pypiwin32, kivy.deps.sdl2, kivy.deps.glew
Successfully installed docutils-0.13.1 kivy.deps.glew-0.1.9 kivy.deps.sdl2-0.1.17 pygments-2.2.0 pypiwin32-219
0
>>>
测试程序:
import kivy
from kivy.app import App
from kivy.uix.button import Button
class HeiBoyApp(App):
"""docstring for MyApp"""
def build(self):
return Button(text=‘Hello World‘)
if __name__ == ‘__main__‘:
HeiBoyApp().run()
标签:load sys requests ati package status version ext record
原文地址:http://www.cnblogs.com/lypy/p/6344671.html