加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-14 05:46:06 所属栏目:Windows 来源:网络整理
导读:人们使用什么样的设置在同一台 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 dependencie
人们使用什么样的设置在同一台 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上运行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读