简体   繁体   中英

compiling python code from gedit

I am using WinXP. I am using gedit (2.30.1) as python IDE. But I don't how to compile my code from inside the gedit. I've searched the net, but can't found any good solution.

First of all, you don't compile a python code. Python's code is interpreted.

EDIT:

gedit doesn't come by default with the plugins necessary to do the development. You will have to install them. Look in the comment for the link.

You can also checkout a blog link.

Using any simple text editor won't give you much flexibility in running the code right from the application. Unless you add a few plugins here and there to gEdit, you couldn't do it natively from Linux either.

If you're keen on sticking with gEdit for your needs, then you would have to install the plugins in your system - here is a link that may be of use to you. If you're fine with moving to another text editor, then I would strongly recommend Geany, which does the same thing as gEdit, but is more fully-featured, and can allow for execution of code in the same application.

You almost never need to compile Python code, although sometimes, as a optimization, Python code could be transfered into C code for a higher performance with certain plugins. Python code are translated to *.pyc and run in a PVM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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