How to install Python3 on a custom path using Chocolatey?

I install Python 3 with Chocolatey , which installs in C:\ProgramData\chocolatey\lib\python3:

> choco install python3

Is there a way to get Python3 to install instead C:\Python35?

I know this question that is related to Python 2 ... but another package is used here, so the answer there does not help in this case.

+4
source share
1 answer

It is possible to override --installargsas follows:

> choco install python3 -y --override --installarguments "'/quiet  InstallAllUsers=1 TargetDir=c:\Python35'"

You may see some (failed) errors (suppose the Python 3.5.1 package is corrupted), but overall it works.

, Python 3.5.2, chocolatey.org

+2

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


All Articles