Python 安装程序:“写入文件 C:Python27pythonw.exe 时出错"

问题描述

我正在尝试在 Windows 10 上安装 Python 2.7(64 位).在安装过程中,会弹出一个窗口说:

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

写入文件 C:Python27pythonw.exe 时出错.确认您有访问该目录

Error writing to file C:Python27pythonw.exe. Verify that you have access to that directory

如何解决此问题并安装 Python?

How can I resolve this issue and install Python?


解决方案

当安装程序没有您要安装到的驱动器/文件夹的管理员权限时,通常会遇到此错误.我还注意到您正在安装驱动器 C:

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".

根据您的 PC 设置方式,您可能无权在驱动器 C 上安装:

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

如果这是一台工作计算机,请与您的 IT 部门联系.否则,请认真考虑使用不同的驱动器将您的操作系统和应用程序分开.

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.

相关文章