简体   繁体   English

Windows上的多个python 2.7版本

[英]Multiple python 2.7 versions on windows

How can I have different 2.7.x versions in parallel on Windows? 在Windows上如何并行使用不同的2.7.x版本? The installer overwrites older versions even if installed into a different directory. 即使安装在其他目录中,安装程序也会覆盖较旧的版本。

Background: 背景:

I'd like to have more than one version of CPython 2.7 installed on a Windows machine for continuous integration purposes. 我想在Windows机器上安装多个版本的CPython 2.7,以实现持续集成。 I can do that without problems on Linux and OSX already. 我可以在Linux和OSX上做到这一点而没有问题。

Having different 2.x and 3.x versions in parallel works fine, but due to the longlivety of Python 2.7 (initial release in 2010) the 2.7.x versions aren't all that compatible among each other, and users don't update all that frequently. 并行使用不同的2.x和3.x版本可以很好地工作,但是由于Python 2.7的长寿性(2010年首次发布),因此2.7.x版本彼此之间并不兼容,并且用户不更新所有那些经常。

After lots of searching I think it is safe to say that BrenBarn's comment answers it best: 经过大量搜索,我认为可以肯定地说BrenBarn的评论回答得最好:

Portable Python versions can be installed in parallel even if they have the same first two digits. 即使可移植的Python版本的前两位相同,也可以并行安装。 The drawbacks are that the available versions lack behind quite a bit and there are only available in 32-bit (which makes perfect sense, they are made for portability after all). 缺点是可用版本缺乏很多,只能使用32位(这很合理,毕竟是为可移植性而设计的)。

I use the conda by Continuum Analytics to easily switch between Python versions 我使用Continuum Analytics的conda在Python版本之间轻松切换

http://www.continuum.io/blog/conda http://www.continuum.io/blog/conda

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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