I have read in different gis.stackexchange posts that the python IDLE is located in Python27>Lib>idlelib, and if I had ArcGIS, it would be Python27>ArcGIS10.x>Lib>idlelib
But in my case, I can't find this directory for QGIS.
I have installed QGIS on my computer, but python IDLE is not shown in the start menu. Does this mean that it doesn't exist? I can't find the idlelib.
How can I download the python IDLE for python 2.7 ?
3 Answers 3
QGIS does not install IDLE automatically. The Windows installers of Python include IDLE, however, you will likely have problems getting the two different installations to talk to each other. This question gives some more detail: https://stackoverflow.com/questions/25836182/cant-get-python-idle-to-recognize-ogr-gdal-module
However, I think IDLE is not that great as an editor, just use the built in QGIS one, and if you need more power, use an external editor.
-
Thank you very much. I use both both editors, but personally, I prefer the IDLE to write the script and then save it with .py extension and read it in QGIS. Nevertheless, I have never came across with this issue.user64823– user648232016年10月13日 14:47:16 +00:00Commented Oct 13, 2016 at 14:47
-
It depends on what you mean by installed. It's part of the Python Installation under apps/python/lib but there is no batch file to call it. I found out how to call it, you find the batch code in my answer, just but it into a idle.bat under osgeo4w/bin. then, you should be able to call it from the osgeo4w shell.Andreas Müller– Andreas Müller2016年11月02日 20:46:39 +00:00Commented Nov 2, 2016 at 20:46
As far as I know, QGIS does not install IDLE. (At least I have never seen it.) But QGIS as his own Python console and Editor. You can access it in Plugins> Python Console.
In the python console there is an icon for the editor.
-
Thank you, in order to carry out the process I say in my comment at the top, I ' ll install Python again or just install another IDE (pyScripter, NotePad++)user64823– user648232016年10月13日 14:49:41 +00:00Commented Oct 13, 2016 at 14:49
I have a batch file to call idle. Here it is:
@echo off
call %OSGEO4W_ROOT%\bin\o4w_env.bat
start "IDLE" /D%OSGEO4W_ROOT%\apps\python27\lib\idlelib /B pythonw idle.pyw %*