根据找到的说明,在windows计算机上运行pip install django===1.4 django-cms south时,here返回以下错误:
Downloading/unpacking Django==1.4
Downloading Django-1.4.tar.gz (7.6MB): 7.6MB downloaded
Running setup.py egg_info for package Django
Downloading/unpacking django-cms
Running setup.py egg_info for package django-cms
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\shadow\appdata\local\temp\pip-build-Shadow\django-cms\setup
.py", line 3, in <module>
import cms
File "cms\__init__.py", line 7, in <module>
if 'cms' in settings.INSTALLED_APPS:
File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 53, in
__getattr__
self._setup(name)
File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 46, in
_setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APP
S, but settings are not configured. You must either define the environment varia
ble DJANGO_SETTINGS_MODULE or call settings.configure() before accessing setting
s.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\shadow\appdata\local\temp\pip-build-Shadow\django-cms\setup.py"
, line 3, in <module>
import cms
File "cms\__init__.py", line 7, in <module>
if 'cms' in settings.INSTALLED_APPS:
File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 53, in __ge
tattr__
self._setup(name)
File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 46, in _set
up
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, b
ut settings are not configured. You must either define the environment variable
DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in c:\users\shadow\app
data\local\temp\pip-build-Shadow\django-cms
Storing complete log in C:\Users\Shadow\pip\pip.logDjango和apache以及其他一切都运行得很好。据我所知,这种类型的错误应该只有在你实际尝试运行django时才会发生,而不是试图安装插件/应用程序。你知道是什么导致了这个错误吗?
发布于 2013-04-06 04:53:25
这是一个已知的问题,将在未来3天内通过2.3.6版本进行修复。即将发布的2.4版本也不会有这个问题。
https://stackoverflow.com/questions/15842629
复制相似问题