Python Installation Troubleshooting
Question: I am struggling to install Python. I am running Windows 8.1 . Python used to
run OK on my PC but I refreshed Windows recently and now have to install it
again. I did delete the Python folder before I attempt installation and also
made sure an older version was not installed. When I start the IDLE, about 9
IDLE windows open together with the last one which has a script in it :

    
    
    try:
        import idlelib.PyShell
    except ImportError:
        # IDLE is not installed, but maybe PyShell is on sys.path:
        try:
            from . import PyShell
        except ImportError:
            raise
        else:
            import os
            idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
            if idledir != os.getcwd():
                # We're not in the IDLE directory, help the subprocess find run.py
                pypath = os.environ.get('PYTHONPATH', '')
                if pypath:
                    os.environ['PYTHONPATH'] = pypath + ':' + idledir
                else:
                    os.environ['PYTHONPATH'] = idledir
            PyShell.main()
    else:
        idlelib.PyShell.main()
    

Any help will be appreciated.


Answer: I would do a complete uninstall of the program and reinstall it. Make sure you
also have all windows updates. Just sounds like a bad/corrupted install.

