【发布时间】:2012-06-27 15:38:55
【问题描述】:
我有需要 Python 3 的程序,但我开发 Django 并且它使用 Python 2。 怎么办,两个都用
【问题讨论】:
标签: python django ubuntu python-3.x
我有需要 Python 3 的程序,但我开发 Django 并且它使用 Python 2。 怎么办,两个都用
【问题讨论】:
标签: python django ubuntu python-3.x
同时安装。 Python 3 使用不同的可执行文件名,因此两者不会冲突,Debian python policy(Ubuntu 采用)声明两个主要版本将作为单独的架构保存。
Python 版本使用主要和次要版本号(python2.7、python3.2)安装,但 Ubuntu 将为您的 python 2 和 python 3 安装创建 python 和 python3 别名(链接到 python2.7和python3.2)。
您的 Django 开发将继续使用 python,而您的 Python 3 程序将使用 python3。
【讨论】: