【Python问题解决】---- ERROR: Could not install packages due to an OSError: [WinError 2] 系统找不到指定的文件。

1. 报错

ERROR: Could not install packages due to an OSError: [WinError 2] 系统找不到指定的文件。: 'C:\\Python310\\Scripts\\pyi-archive_viewer.exe' -> 'C:\\Python310\\Scripts\\pyi-archive_viewer.exe.deleteme'

2. 报错图片

【Python问题解决】---- ERROR: Could not install packages due to an OSError: [WinError 2] 系统找不到指定的文件。_第1张图片

3. 报错场景

  1. 安装 pyinstaller 的时候报错

4. 解决办法

  1. cmd
  2. 以管理员身份运行
    【Python问题解决】---- ERROR: Could not install packages due to an OSError: [WinError 2] 系统找不到指定的文件。_第2张图片
  3. 安装 pyinstaller
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pyinstaller

【Python问题解决】---- ERROR: Could not install packages due to an OSError: [WinError 2] 系统找不到指定的文件。_第3张图片

5. 安装成功查看版本

在这里插入图片描述

你可能感兴趣的:(Python,python,windows,开发语言)