我正在安装 Python 2.7.11 使用巧克力味 https://chocolatey.org,它安装到C:\tools\python2
:
choco install python2 -y
有什么办法可以让Python安装到C:\Python27
反而?
是的,覆盖安装参数 https://github.com/chocolatey/choco/wiki/CommandsInstall#options-and-switches -
choco install python2 -y -o -ia "'/qn /norestart ALLUSERS=1 TARGETDIR=c:\Python27'"
或者,您可以创建一个 Python27 文件夹,它将安装在那里。
请注意,这是通过阅读 ChocolateyInstall.ps1 脚本来确定的 -https://chocolatey.org/packages/python2#files https://chocolatey.org/packages/python2#files
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)