简体   繁体   中英

Potential Multiple installations of Python on Windows

I ran into the following problem: I need to supply the installation package to the client. Part of the code is python, so I have to make sure that it is installed. I am using NSIS for the installation ans would like to install python into a predefined by me folder (let it be c:\\Program Files\\Project\\Python26). For that I downloaded the python's msi and trying to execute the following to install it

msiexec  /package "$INSTDIR\packages\python-2.6.5.msi" /quiet TARGETDIR=c:\Program Files\Project\Python26

This works the first time (when python is not already installed), but if the python is already installed, I have to choose between reinstalling/repairing/changing. Does anybody know how to make sure that I can install python in the my directory without affecting potentially installed python?

根据文档 ,如/p (或/o/c ,取决于您的确切意图)之类的选项应该可以满足您的目的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM