简体   繁体   English

我可以使用哪个最佳的Python版本和IDE?

[英]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 人气度

  • When selecting a framework to learn, popularity is a reasonable gauge of how good a framework is, and how easy it will be to get support when you run into problems. 在选择要学习的框架时,受欢迎程度可以合理衡量框架的良好程度,以及遇到问题时获得支持的难易程度。 The tags on stackoverflow are a quick way to get a ballpark idea. stackoverflow上的标签是一种获得思路的快速方法。

Environment 环境

  • Start with what you're the most familiar with. 从您最熟悉的内容开始。 When learning something new, there is so much to absorb, that having something familiar really helps. 当学习新的东西时,有很多东西要吸收,熟悉一些东西真的会有所帮助。
  • For example, when I taught myself python a year ago, I used pydev in eclipse, because I've been a cross-platform java developer using eclipse for quite some time. 例如,一年前当我自学python时,我在eclipse中使用了pydev,因为我已经有相当一段时间使用eclipse进行跨平台的Java开发了。 Made life much easier. 使生活变得更加轻松。
  • If you're starting from ground zero, it doesn't matter very much. 如果您是从零开始,那没什么大不了的。 Pick something popular that you feel comfortable in and start coding. 选择您喜欢的流行事物并开始编码。 As you become familiar with what you're doing, you'll be able to compare other packages and determine if it's right to switch. 当您熟悉正在做的事情时,就可以比较其他软件包并确定是否合适。
  • The popular IDE's are cross-platform. 流行的IDE是跨平台的。 Graphics packages too, although usually one is stronger on unix or windows. 图形包也可以,尽管通常在UNIX或Windows上更强大。

您可以将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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM