Pycharm,virtualenv和kivy设置 [英] Pycharm, virtualenv and kivy setup

查看:168
本文介绍了Pycharm,virtualenv和kivy设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正从崇高的文字转到pycharm,无法使其与kivy和virtualenv一起使用.我已经在pycharm中创建了一个带有新项目的virtualenv,但是我不知道如何让kivy工作. kivy帮助显示使用kivy.bat作为python解释器,但我想使用virtualenv.一种可能的选择是从kivy.bat中添加所有环境变量,但这听起来与多个virtualenvs并不太有趣.任何帮助或技巧将不胜感激.

I'm moving to pycharm from sublime text and can't get it working with kivy and virtualenv. I've created a virtualenv with a new project in pycharm but I can't figure out how to get kivy working. The kivy help shows using the kivy.bat as the python interpreter but I want to use the virtualenv. One possible option would be to add all the environmental variables from the kivy.bat, but this doesn't sound like fun to do with multiple virtualenvs. Any help or tips would be greatly appreciated.

推荐答案

我找到了一种方法来设置kivy.bat中的环境变量.我只是创建了一个新的.bat来设置环境变量,然后从命令行运行pycharm.这样,变量就可以在项目之间持久化.

I found a way to set the environmental variables found in the kivy.bat. I simply created a new .bat that sets the environmental variables and then runs pycharm from the command line. This allows the variables to persist between projects.

这篇关于Pycharm,virtualenv和kivy设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆