python绿色工程
测试环境:
硬件:matebook X i7-10510U
软件:Windows 10.0.18363.1440 + python 3.9.2
用户环境变量设置
参考资料
setx 永久设置用户环境变量
setx /m 永久设置系统环境变量
假设我们的python安装在d:\python39
即有设置用户环境变量命令
setx path "%path%;d:\python39;d:\python39\scripts"
pip自定义安装路径
d:\python39\lib\site.py
# for distutils.commands.install
# These values are initialized by the getuserbase() and getusersitepackages()
# functions, through the main() function when Python starts.
USER_SITE = "D:\python39\Lib\site-packages&