[英]Which is the best Python version and IDE for me to use?
Based on my project, which is the best version of Python to use? 根据我的项目,哪个是最好的Python版本? Which is the best IDE to use that runs on Linux (Ubuntu) and Windows?
在Linux(Ubuntu)和Windows上运行的最佳IDE是哪种? Here is the background for these questions:
这是这些问题的背景:
I'm building a small application GUI that features "drill-down" views and direct manipulation on personalized calendars. 我正在构建一个小型应用程序GUI,该GUI具有“向下钻取”视图和对个性化日历的直接操作。 Should I use Python 3, the newest version, or an older version is better at this GUI task?
我应该使用Python 3,最新版本还是较旧的版本来完成此GUI任务? I've heard that some of the old GUI libraries do not support the new version yet, but not quite sure if this will matter a lot.
我听说有些旧的GUI库尚不支持新版本,但是不确定这是否很重要。 Could you please name the libraries that might be relevant?
您能否命名可能相关的库? Even better if you could suggest your preferred IDE either under Windows or Ubuntu.
如果可以在Windows或Ubuntu下建议您首选的IDE,那就更好了。 Many thanks.
非常感谢。
SublimeText2 has excellent Python support. SublimeText2具有出色的Python支持。
Also you can use PyDev for Eclipse . 您也可以将PyDev用于Eclipse 。
About versions: I think you should write 2.7-compatible code, but be ready( and know how) to update it to 3.2 or later. 关于版本:我认为您应该编写2.7兼容代码,但要准备好(并且知道如何)将其更新到3.2或更高版本。
Depends a bit on which GUI you use. 取决于您使用的GUI。 If you're using PyQt, it supports v3 .
如果您使用的是PyQt,则它支持v3 。 wxPython, however, does not .
但是wxPython 却没有 。
As a rule of thumb, for now, you can pretty much use python 3.0 syntax in 2.7, and keep things compatible going forward. 根据经验,现在您可以在2.7中使用python 3.0语法,并保持兼容。 I'd say, except for print statements, the differences aren't that mind-blowingly different between 2-3.
我要说的是,除了打印语句,差异在2-3之间并没有那么大的差异。 IDE's pretty much support both - and gnud's links are pretty good for that.
IDE几乎都支持-gnud的链接对此非常有用。
Popularity 人气度
Environment 环境
您可以将vim用作IDE。使用2.7版本和3.0版本启动程序。查看此python 2或3
I'd recommend starting with 2.7 since most libraries work with it. 我建议从2.7开始,因为大多数库都可以使用它。 The differences between both are not too big, so you might even be able to switch if you want to in the future.
两者之间的差异不太大,因此将来您甚至可以切换。 But before you choose Python 3 and you find a library you really want to use and it's not available for Python 3 you would regret choosing.
但是在选择Python 3之前,您会找到您真正要使用的库,而该库不适用于Python 3,您会后悔选择。
wxPython and PyQt are pretty popular. wxPython和PyQt非常受欢迎。 wxPython doesnt support 3 yet...
wxPython尚不支持3 ...
I prefer PyCharm it's not free but it's so great and it has so many features... One of the best code-completion i ever had for Python. 我更喜欢PyCharm,它不是免费的,但它是如此之大,它具有许多功能...我曾经为Python编写过的最好的代码完成之一。
PS: if its really simple you mgiht even consider using tkinter. PS:如果真的很简单,您甚至可以考虑使用tkinter。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.