系统相关
首页 > 系统相关> > 如何在相同的Windows XP框上运行python 2.6和3.0?

如何在相同的Windows XP框上运行python 2.6和3.0?

作者:互联网

人们使用什么样的设置在同一台Windows机器上运行python 2.6和python 3.0?

解决方法:

Virtualenv是Unix和Mac平台上的首选解决方案.

virtualenv is a tool to create
isolated Python environments.

The basic problem being addressed is
one of dependencies and versions, and
indirectly permissions. Imagine you
have an application that needs version
1 of LibFoo, but another application
requires version 2. How can you use
both these applications? If you
install everything into
/usr/lib/python2.4/site-packages (or
whatever your platform’s standard
location is), it’s easy to end up in a
situation where you unintentionally
upgrade an application that shouldn’t
be upgraded.

Or more generally, what if you want to
install an application and leave it
be? If an application works, any
change in its libraries or the
versions of those libraries can break
the application.

Also, what if you can’t install
packages into the global site-packages
directory? For instance, on a shared
host.

我没有试过这个,但是有关在Windows中使用的文档的存在使我认为它现在可以在Windows上运行.

标签:python,windows-xp
来源: https://codeday.me/bug/20190716/1473130.html