Search code examples
pythonpython-2.7windows-10failed-installation

Python Installer: "Error writing to file C:\Python27\pythonw.exe"


I am trying to install Python 2.7 (64 bit) on Windows 10. In the middle of the installation, a window pops up saying:

Error writing to file C:\Python27\pythonw.exe. Verify that you have access to that directory

How can I resolve this issue and install Python?

screenshot


Solution

  • This error is normally encountered when the installer does not have admin rights for the drive/folder you are installing to. I also noticed that you are installing to drive C:

    Here are a couple of things for you to try.

    Open the installer program by right-clicking, and then selecting "Run as Administrator".

    Depending on how you have your PC set up you may not have permission to install on drive C:

    If this is a work computer, talk to your IT department. Otherwise, seriously consider using different drives to keep your OS and your applications separated.