文档首页> AI开发平台ModelArts> 故障排除> API/SDK> 安装ModelArts SDK报错“ERROR: Could not install packages due to an OSError”
更新时间:2022-12-08 GMT+08:00

安装ModelArts SDK报错“ERROR: Could not install packages due to an OSError”

问题现象

安装ModelArts SDK报错,完整报错信息“ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'c:\python39\Scripts\ephemeral-port-reserve.exe' -> 'c:\python39\Scripts\ephemeral-port-reserve.exe.deleteme ”。

原因分析

用户使用权限问题导致。

处理方法

用户电脑切换到管理员角色,键盘快捷键(Windows+R模式)并输入cmd,进入黑色窗口,执行如下命令:

python -m pip install --upgrade pip