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

后端 未结 4 1958
时光取名叫无心
时光取名叫无心 2020-12-20 03:03

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:\\Python

4条回答
  •  轮回少年
    2020-12-20 03:08

    I encountered a similar issue while installing Python 2.7.11 on Windows 7 (64bit). Here is how I solved the error.

    1. Note down the path mentioned in the error.

    2. Do not close the error message. i.e. Do not press "Retry" or "Cancel", let it be there.

    3. Go to the directory mentioned in step-1.

    4. Try to create a new folder or text file in this directory.

    5. You will get an error message saying "The Disc Structure is Corrupted and Unreadable". This is the real issue which is causing the Python installation to fail.

    6. Run Command Prompt as an administrator and enter the command: Chkdsk \f C:

    7. Either it will start checking the disc or it will ask you to select if you want to check disc next time you boot-up your machine. Select Yes and restart your machine.

    8. A disc check will be performed, which may take 5-10 minutes.

    9. Now you can install Python without any issue.

提交回复
热议问题