将 Python3.11 和 Python2.7 添加到系统路径变量 (BAT 脚本)
@echo off setlocal enabledelayedexpansion
set 'python311=%cd%\python\Python311' set 'python311_scripts=%cd%\python\Python311\Scripts' set 'python27=%cd%\python\Python27' set 'python27_scripts=%cd%\python\Python27\Scripts'
set 'path=%path%;%python311%;%python311_scripts%;%python27%;%python27_scripts%'
echo Path updated successfully! pause>nul exit
原文地址: https://www.cveoy.top/t/topic/ndxh 著作权归作者所有。请勿转载和采集!