随手笔记:Windows Python 安装、删除 error 2203/2502/2503
错误描述
The installer has encounted an unexcepted error install this package. This may indicate a problem with this package. The error code is 2203/2503/2503.
官方定义
2203 Database: [2]. Cannot open database file. System error [3].
2502 Called InstallFinalize when no install in progress.
2503 Called RunScript when not marked in progress.
可能的原因
需要操作的文件夹不存在(2203)\权限不足(2502、2503)
具体原因
C:\Windows\TEMP
文件夹由于我操作临时文件不慎,变成了C:\Windows\TEMP
文件,操作文件夹的方法无法应用于文件。
解决
- 删除
C:\Windows\Temp
文件,并创建C:\Windows\Temp
文件夹。 - 修改User用户对该文件夹的操作权限,增加修改和写入权限。