已关闭
[Bug-Report|缺陷反馈]:离线场景下msmodelslim运行install.sh,报缺少python包,实际环境有该python包且符合版本要求 #339
youling129s创建于 2025年11月17日关闭于 2025年11月24日
2025年11月17日 修改标题为 “[Bug-Report|缺陷反馈]:离线场景下msmodelslim运行install.sh,报缺少python包,实际环境有该python包且符合版本要求”,原标题为“[Bug-Report|缺陷反馈]:离线场景下msmodelslim运行install.sh,报确实python包,实际环境有该python包且符合版本要求”
2025年11月17日 修改标题为 “[Bug-Report|缺陷反馈]:离线场景下msmodelslim运行install.sh,报缺少python包,实际环境有该python包且符合版本要求”,原标题为“[Bug-Report|缺陷反馈]:离线场景下msmodelslim运行install.sh,报确实python包,实际环境有该python包且符合版本要求”
youling129s
2025年11月17日 评论:
2025年11月17日 评论:


youling129s
2025年11月19日 评论:
2025年11月19日 评论:


youling129s
2025年11月24日 评论:
2025年11月24日 评论:
您好 ,您可以尝试使用--no-deps来进行安装
@anreywmh

加了上述参数依旧不行看着像是setuptools的问题?


anreywmh
2025年11月24日 评论:
2025年11月24日 评论:
您好 感觉还是您的环境配置哪里有什么问题
1、请执行pip show setuptools,检查setuptools来源
2、执行which python,检查python来源
3、执行echo $PYTHONPATH
麻烦提供上述三部分截图


youling129s
2025年11月24日 评论:
2025年11月24日 评论:


youling129s
2025年11月24日 评论:
2025年11月24日 评论:
您好 方便提供一下您离线安装的具体步骤和操作经验吗?可能是msmodelslim这边资料的不足,希望可以请教一下
实际部署场景物理机无法通公网,所以就是测试环境拉个cann容器,记录安装msmodelslim前的pip list,bash install.sh在记录一下pip list,准备下安装过程中涉及的包.whl(前后pip list的差异包,除了msmodelslim)。实际实施的时候提前pip install *,再运行bash install.sh。只是当时发现离线运行安装脚本会报setuptools的错,后来搜了下发现安装wheel就能解决。但不清楚为什么联网环境不会有这个问题


2025年11月24日 issue状态由 TODO 改变为 WIP
2025年11月24日 issue状态由 WIP 改变为 DONE
2025年11月24日 关闭了 issue



Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
msit(master)
在离线场景下进行msmodelslim安装,预先手动pip install了所有所需依赖包(除了msmodelslim),再运行bash install.sh,报错提示缺少setuptools>=40.8.0,但实际查看pip list中有setuptools 65.5.0。并且对比离线安装和联网安装下的pip list,包和版本均符合要求
Environment / 环境信息 (Mandatory / 必填)
Atlas 800I A2*1
cann(8.2.rc2-910b-ubuntu22.04-py3.11)
msit(master)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
pip install * #提前准备好所需的全量python安装包
bash install.sh
Describe the expected behavior / 预期结果 (Mandatory / 必填)
离线环境能够正常执行install.sh
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
collect packages from CANN installation path: /usr/local/Ascend/ascend-toolkit/latest/python/site-packages/msmodelslim/, copy to /mnt/msit/msmodelslim/msmodelslim
cleaning build cache to ensure fresh build
uninstalling existing msmodelslim package
WARNING: Skipping msmodelslim as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
installing msmodelslim package without cache
Processing /mnt/msit/msmodelslim
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffaa080290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffaa080dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffaa0819d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffaa0825d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffaa0831d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Special notes for this issue/备注 (Optional / 选填)