user149135
user149135

Reputation:

Python programming on Eclipse with Pydev

I need major help getting started! I managed to create a new project, and add python.exe as the interpreter. But when the project is created it's blank. How do I start programming? Ugh.

Upvotes: 0

Views: 2702

Answers (3)

pokstad
pokstad

Reputation: 3461

You need to make sure you create a Pydev project. If you don't already have a Python interpreter installed, you'll need to get one (this is mainly a problem on Windows, ActiveState is a great commercial grade distribution, python.org also has some great free builds of Python.) Once this is complete, you'll need to get into your global Pydev preferences (not the preferences for your specific project, but for all Pydev projects) and select the interpreter of your choice. Pydev will automatically scan the libraries included with your interpreter distribution and make them available for code completion. Then, you'll need to create a source file in the 'src' folder that contains code. Run it by choosing a run configuration that matches up with your interpreter choice (regular old Python in your case, not Iron python or Jpython). Most entry point python modules will have a main function like in C/C++ that looks like this: What does if __name__ == "__main__": do?

Upvotes: 1

jldupont
jldupont

Reputation: 96854

  1. Create PyDev project
  2. Add "Source Folder" under the project
  3. Add "Modules" to the "Source Folder"
  4. Get coding :-)

Upvotes: 4

Amber
Amber

Reputation: 527488

Open a new text file and start writing code?

Upvotes: 2

Related Questions