How to make a chocolate version of installing python2 in a custom path?

I install Python 2.7.11 using Chocolatey , which installs in C:\tools\python2:

choco install python2 -y

Is there a way to get Python to install in C:\Python27instead?

+2
source share
1 answer

Yes, override set arguments -

choco install python2 -y -o -ia "'/qn /norestart ALLUSERS=1 TARGETDIR=c:\Python27'"

Alternatively, you can create a Python27 folder and it will be installed there.

Please note that this is determined by reading through chocolateyInstall.ps1 script - https://chocolatey.org/packages/python2#files

+6
source

Source: https://habr.com/ru/post/1650641/


All Articles