It is critical that Java, Python, and Eclipse are either all 32 Bit or are all 64 Bit (and only if your Machine/OS supports 64 Bit): I think it easiest to use 32 Bit for everything. Click the 32-Bit (after Windows) to the right of the Eclipse IDE for Eclipse Committers.
Get started with local development and debugging with Eclipse and the PyDevplugins. This configuration allows you to run your App Engine app locally in adebug mode and use Eclipse’s Debug perspective to set breakpoints and stepthrough your code. The PyDev plugins provide helper functionality for workingwith App Engine, including creating starter projects and deploying apps.
Before you begin
- Install Python 2.7 if you do not already have Python installed.
- From the Optional section of the SDK download page, install the originalApp Engine SDK for Python.
Check your version of Python
To check which version of Python that you have installed, run the following command:
Installing Eclipse
The following instructions assume that you are going to install Eclipse IDE forJavaScript and Web Developers,which is based on Eclipse Neon (4.6). Use the Eclipse Installer to make theinstallation process easier.
- Install the Eclipse Installer.
- In the Eclipse Installer, choose the Eclipse IDE for JavaScript and WebDevelopers package and click Install.
- When the installation finishes, click Launch.
- When Eclipse launches, specify a workspace location or accept the default.
Installing PyDev
After you install Eclipse, you should install the PyDev plugin that allows youto use Eclipse as a Python IDE.
- In Eclipse, click Help > Eclipse Marketplace.
- In the Find field, specify 'PyDev'.
- Click Install and complete the installation wizard.
- Restart Eclipse when prompted.
Configuring your project
- Create a new project: Click File > New > Project.
- On the Select a wizard page, select PyDev Google App Engine Project.
- On the PyDev Project page, name the project. Then, let Eclipse configure the default interpreter by clicking Please configure an interpreter before proceeding.If Eclipse did not find a Python 2.7 interpreter, click the Click hereto configure an interpreter not listed link to configure the interpreter.
- On the Google App Engine page, click Browse and locate thedirectory where you installed the App Engine SDK.
- Click Next to continue to configure a basic project or click Finishto start with a blank project.
- If you are configuring a project, specify the project ID. To view yourproject ID, go to the GCP Console.If you have not yet registered a project, you can specify atemporary name that will be inserted into the project’s
app.yaml
file. Youcan change this name later if necessary. - Choose a starter template. Recommended: Use the Hello World templateto generate anNote: The PyDev starter projects are out of date and use the Python 2.5 webapp module.
app.yaml
file and a simple Python script. You can laterdevelop using your choice of frameworks, such as Flask or Django.
Default location of the SDK
- macOS
- If you installed the SDK with the Google App Engine launcher, you are prompted to create symlinks when the launcher starts. If you created symlinks, the default location is: If you did not create symlinks, the default location is:
- Linux
- The location is where you extracted the SDK zip file that you downloaded.
- Windows
![Install Eclipse Ide Python Install Eclipse Ide Python](/uploads/1/2/5/8/125860962/950117419.jpg)
Importing libraries for Eclipse to recognize
After you set up a project, you might choose a library that your code will relyon. You will need to import the library into your project and configure yourproject to load that library, but you will also need to instruct Eclipse to usethat library.
To have Eclipse recognize your imported library:
- Import the library to your project.
- Edit your Eclipse project’s properties: Right-click the project and selectProperties.
- Select PyDev - PYTHONPATH in the navigation pane of the dialog.
- If you manage your libraries in a child folder of your project, such as`lib`, click Add source folder.
Eclipse now adds your specified libraries onto the Python path for resolvingimports.
Launching your app in debug mode
Running your app in debug mode in Eclipse allows you to set breakpoints in yourcode. When those lines are executed, processing pauses temporarily, allowing youto inspect your code and step through the execution. This functionality isextremely helpful during development of your app.
Setting up a debug configuration
The first time you launch your app in debug mode, it will create a debugconfiguration that you can execute later or modify to add parameters for yourbuild.
- Right-click your project name in the project explorer and selectDebug As > PyDev: Google App Run.The console view should open and display the system output of the development server, which includes the URLs that your app is running.
- Verify that your app is running by visiting the URL shown in the console. Bydefault, the app runs fromhttp://localhost:8080.If you used the Hello World starter template, you should see 'Hello, world!'printed to the browser.
Debug mode is now running within Eclipse. You also created a Debug configurationthat you can run again later if you leave Eclipse or need to stop and restartthe debugger.
Setting a breakpoint to step through your code
Now that you have the debugger running, you can set breakpoints and use them tostep through your code execution.
- Open a file in your Eclipse project, such as the
helloworld.py
file if youare using the starter template. - Right-click the line number next to the code where you want to set abreakpoint and select Add Breakpoint.A green circle appears on the line where you set the breakpoint.
- Return to the browser and open the URL that will run the line where you setthe breakpoint. Eclipse asks you to switch to the Debug perspective when thebreakpoint is triggered.
- If you are prompted to switch to the Debug perspective, click Yes.This perspective provides a debugging-specific view of your code, includingthe Variables view.In the Variables viewer, you can inspect the objects and variables that are currently defined in your code.The menu bar buttons provide the following controls:
- Continues execution until the next breakpoint is encountered or execution finishes.
- Step into lower level code, such as into a method.
- Step line by line in the current code rather than going into lower level code.
- Step return to higher level code. If you step into lower level code, you might choose to return back to the higher level code before that lower level code finishes its execution to return you back to the calling code.
- Terminate the execution.
- Skip remaining breakpoints.
- Click the continue icon()to continue process and allow the development server to send a simple 'Hello,World!' response to the browser.
To switch back to the PyDev perspective after you are finished debugging, chooseWindow > Perspective > Open Perspective and choose Pydev. Or, click thePyDev icon in the top right corner of Eclipse:
Deploying your app from Eclipse
The PyDev plugin for Eclipse allows you to deploy your app from your workspace.
- Use the Google Cloud Platform Console to setup your Google Cloud Platform project:Either select or create a GCP project and ensure that it includesan App Engine application:The Dashboard opens if an App Engine application already exists in yourproject. Otherwise, you are prompted to choose theregion where you want your App Engineapplication located.Tip: Your project's ID becomes part of your app's URL, forexample,
http://[YOUR_PROJECT_ID].appspot.com
. - In Eclipse, edit your
app.yaml
file and change the value of theapplication
element to your GCP project ID. - In the PyDev Package Explorer or Project Explorer view, right-click theproject folder and choose PyDev Google App Engine > Upload.If this is your first time running the App Engine SDK management commands,you will be prompted to authorize the SDK to grant access to the tool tomodify your App Engine applications. Click Allow.You can close the browser window when it says 'The authentication flow has completed' and return to Eclipse.
- Confirm that your application uploads successfully in theManage Google App Engine dialog:
- Browse to
http://[YOUR_PROJECT_ID].appspot.com
and you should see yourapplication serving traffic.
Next steps
Now that you have a development environment set up, the following topics canhelp you get started with App Engine:
Details Group Tabs
PyDev is a plugin that enables Eclipse to be used as a Python IDE (supporting also Jython and IronPython). It uses advanced type inference techniques which allow it to provide things such as code completion and code analysis, besides providing a debugger, interactive console, refactoring, tokens browser, django integration, etc.
Homepage:
pydev.org
pydev.org
Getting Started:
Getting Started (read to make sure you can get most out of PyDev)
Getting Started (read to make sure you can get most out of PyDev)
Feature Matrix:
pydev.org/manual_adv_features.html
pydev.org/manual_adv_features.html
General questions:
StackOverflow (with the PyDev tag)
StackOverflow (with the PyDev tag)
Report issues/features:
Brainwy Tracker
Brainwy Tracker
Code questions:
pydev-code list
pydev-code list
Source Code:
github.com/fabioz/Pydev
github.com/fabioz/Pydev
Blog:
pydev.blogspot.com
pydev.blogspot.com
Below are some of its highlighted features.
- Python, Jython and IronPython support
- Django integration
- Django templates editor (requires LiClipse)
- Code completion
- Debugger
- Unittest integration
- Interactive Console
- Code analysis
- Go to definition (F3)
- Find References (Ctrl+Shift+G)
- Refactoring
- Google App Engine integration
- Syntax highlighting
- Parser errors
- Outline view
- Tabs or spaces preferences
- Smart indent / dedent
- Comment / uncomment / comment blocks
- Code folding
- TODO tasks
- Content Assistants (Ctrl+1)
- Scripting with Jython
- Mark Occurrences
- Editor,
- IDE,
- Languages,
- Source Code Analyzer,
- IDE,
- Python,
- Aptana,
- Pydev,
- Django,
- Favorite,
- Python3,
2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6)
Date | Ranking | Installs | Clickthroughs |
---|---|---|---|
September 2019 | 4/811 | 6576 (3.37%) | 14 |
August 2019 | 4/900 | 16092 (3.13%) | 49 |
July 2019 | 7/911 | 17364 (3.06%) | 36 |
June 2019 | 6/919 | 16239 (3.15%) | 49 |
May 2019 | 6/913 | 18562 (3.18%) | 55 |
April 2019 | 6/923 | 19342 (3.26%) | 58 |
March 2019 | 6/920 | 20609 (3.39%) | 51 |
February 2019 | 5/924 | 18466 (3.55%) | 42 |
January 2019 | 7/930 | 20234 (3.36%) | 55 |
December 2018 | 8/945 | 17356 (3.23%) | 55 |
November 2018 | 7/939 | 19155 (3.1%) | 57 |
October 2018 | 6/943 | 20317 (3.2%) | 45 |
Unsuccessful Installs in the last 7 Days: 125
Count | Error Message |
---|---|
119 | Cannot continue the operation. There is another install operation in progress. |
4 | Cannot complete the install because one or more required items could not be found.... |
1 | Cannot complete the install because one or more required items could not be found.... |
1 | Cannot complete the install because one or more required items could not be found.... |