python桌面应用开发kivy,Pycharm运行Kivy应用程序

I'm running Pycharm 3.4.1 and i just downloaded the Kivy 1.8.0 for python 2.7 pack for windows.

http://kivy.org/#download

I chose the kivy interpreter as my python interpreter for the project:

C:\Python_Kivy_1.8.0\Python27\python.exe

The problem i'm having is that i can't get my Pycharm to run or recognize Kivy at all. There is no auto-completion when writing code and it can't execute via Pycharm. The only way i can execute the program is by running the python file with the kivy.bat file, and that is anoying to do every time.

When i'm trying to execute the code via pycharm i get the following error:

Traceback (most recent call last):

File "C:/Users/Victor/Dropbox/Private/filewatcher_gui/main.py", line 1, in

import kivy

ImportError: No module named kivy

Process finished with exit code 1

I hope you can help me.

解决方案

The kivy wiki has some pages on configuring for different ides, including pycharm.

You could also probably install in your existing installation using the (unofficial) prebuilt windows packages here. Make sure to get kivy's dependencies as well if you try this way.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值