python-reinstall-wheel-with-out-download

1. 到当前目录Python
@echo off
@REM @chcp 65001
@REM @title %~n0
@REM @cd /d %~dp0
@set PYTHON_HOME=%~dp0
@set PATH=%PATH%;%PYTHON_HOME%;%PYTHON_HOME%Scripts

REM @echo.
REM @echo CUDA_HOME
@echo %PYTHON_HOME%
@echo PYTHON_HOME setup done

REM @echo.
REM @echo Load-ENV-CUDA
REM @call ./nvidia/cuda_11.6_setup.cmd
REM @call ../nvidia/cuda_12.8_setup.cmd

@cmd /k

REM No module named 'aliyunsdkcore'
REM pip install aliyun-python-sdk-core

2. gey-py.py

3. reinstall-wheel.cmd
@cd /d %~dp0 && clear
REM
python -m pip uninstall -y pip wheel setuptools
REM
python get-pip.py
REM
python -m pip install -y pip wheel setuptools
REM 导出依赖列表
pip freeze > requirements_freeze_wheel.txt
REM 下载依赖的 wheel 包到本地(如 wheelhouse 文件夹)
pip wheel -r requirements_freeze_wheel.txt -w wheelhouse/
REM 后续可通过 wheel 包安装依赖(避免重复下载):
pip uninstall -r requirements_freeze_wheel.txt -y
REM
pip install --no-index --find-links=wheelhouse/ -r requirements_freeze_wheel.txt