Search code examples
python-3.xraspberry-pipython-idle

Opening Python IDLE from Raspberry Pi


Hi I have bought a Rasberry Pi with Python 3 on it. I can open the Python 3 shell and it works but I can't access an editor. How do I open a Python editor?

cheers


Solution

  • While the standard distribution of Python comes with IDLE, many Linux distributions do not include it. After you launch Python from command line, try the Python command,

    >>> from idlelib import idle
    

    That should start up IDLE with the same version of Python you started, regardless of how your symlinks are set up, if you have it installed for that Python version at all. If not, try installing IDLE with your package manager.


    In case you are unfamiliar with IDLE, note that unless you open a file with it, IDLE starts with a Python shell window only. You can open a new IDLE editor window from the file menu of the IDLE shell window.