我在搭建 Python + Django 的 WEB 服务器
Python 现在安装了两个版本:
Python2.72(编译安装的)
Python2.43(网上看到说如果卸载这个版本会出现很多问题,所以就不敢卸载了)
======================================================
python manage.py runserver
提示:
Traceback (most recent call last):
File "manage.py", line 2, in <module>
from django.core.management import execute_manager
ImportError: cannot import name execute_manager
不过执行 python2 manage.py runserver 是可以运行成功的。
但是用 Python2 命令的话,发现是 Python2.43 版本,有些功能实现不了。
所以需要在 Python2.72 下运行,但是一直报错,求搭救。
Python 现在安装了两个版本:
Python2.72(编译安装的)
Python2.43(网上看到说如果卸载这个版本会出现很多问题,所以就不敢卸载了)
======================================================
python manage.py runserver
提示:
Traceback (most recent call last):
File "manage.py", line 2, in <module>
from django.core.management import execute_manager
ImportError: cannot import name execute_manager
不过执行 python2 manage.py runserver 是可以运行成功的。
但是用 Python2 命令的话,发现是 Python2.43 版本,有些功能实现不了。
所以需要在 Python2.72 下运行,但是一直报错,求搭救。