https://wenku.baidu.com/view/9ad9dec689eb172ded63b7f1.html
1. 用wget下载python安装包
2. 静默安装python
下载链接:(你可以把文件传到自己服务器上)
http://xzd.197946.com/python3x64.zip
安装包的官方文档:
https://docs.python.org/3.6/using/windows.html
- 安装到所有用户
start /wait python-3.6.5-amd64.exe /quiet /uninstall
start /wait python-3.6.5-amd64.exe /quiet InstallAllUsers=1 TargetDir="%ProgramFiles%\python_3.6.5"
- 安装到当前用户(推荐)
start /wait python-3.6.5-amd64.exe /quiet /uninstall
start /wait python-3.6.5-amd64.exe /quiet InstallAllUsers=0 TargetDir="%LocalAppData%\Programs\python_3.6.5"
3. pip 换源
md %HOMEPATH%\pip
copy pip.ini %HOMEPATH%\pip
-
<