创建新的django-cms项目时出现错误 [英] getting error when creating a new django-cms project

查看:133
本文介绍了创建新的django-cms项目时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装django-cms,但是当我想用此代码创建一个新项目时

I want installing django-cms, but when I want create a new project with this code

>>djangocms -p . my_demo

我收到此错误:

(myLibrary)Mehradads-MacBook-Pro-3:Workspace mehradad$ djangocms -p . my_demo

Database configuration (in URL format) [default sqlite://localhost/project.db]: 
django CMS version (choices: 2.4, 3.0, stable, develop) [default stable]: 
Django version (choices: 1.4, 1.5, 1.6, stable) [default stable]: 1.5.8
Activate Django I18N / L10N setting (choices: yes, no) [default yes]: 
Install and configure reversion support (choices: yes, no) [default yes]: 
Languages to enable. Option can be provided multiple times, or as a comma separated list. Only language codes supported by Django can be used here: en
Optional default time zone [default America/Chicago]: 
Activate Django timezone support (choices: yes, no) [default yes]: 
Activate CMS permission management (choices: yes, no) [default yes]: 
Use Twitter Bootstrap Theme (choices: yes, no) [default no]: yes
Use custom template set [default no]: 
Load a starting page with examples after installation. Choose "no" if you use a custom template set. (choices: yes, no) [default no]: yes
INFO: Starting new HTTPS connection (1): pypi.python.org

Command /Users/mehradad/Web_project/Workspace/myLibrary/bin/python -c "import setuptools, tokenize;__file__='/Users/mehradad/Web_project/Workspace/myLibrary/build/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/v5/gzrs3m_932x8gfpqc5lt6kh00000gn/T/pip-3JZJJw-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mehradad/Web_project/Workspace/myLibrary/include/site/python2.7 failed with error code 1 in /Users/mehradad/Web_project/Workspace/myLibrary/build/Pillow
Storing debug log for failure in /Users/mehradad/.pip/pip.log
Traceback (most recent call last):
  File "/Users/mehradad/Web_project/Workspace/myLibrary/bin/djangocms", line 11, in <module>
    sys.exit(execute())
  File "/Users/mehradad/Web_project/Workspace/myLibrary/lib/python2.7/site-packages/djangocms_installer/main.py", line 25, in execute
    install.requirements(config_data.requirements)
  File "/Users/mehradad/Web_project/Workspace/myLibrary/lib/python2.7/site-packages/djangocms_installer/install/__init__.py", line 64, in requirements
    raise InstallationError("Error while installing requirements. Check pip log file for error details.")
pip.exceptions.InstallationError: Error while installing requirements. Check pip log file for error details.

我不知道为什么会收到此错误! 我在max osx 10.8.5中创建了这个项目

I don't know why i get this error! I create this project in max osx 10.8.5

有人可以帮我解决这个问题吗?? 谢谢

Can anybody help me whith this problem!? thanks

推荐答案

最后我找到了正确的解决方案:

Finally I found correct solution:

首次安装:

$ brew install libtiff libjpeg webp little-cms2

然后设置环境的设置优先值:

then set setting prior value for environment:

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

然后通过点子安装枕头:

then install pillow by pip :

$ pip install pillow

现在安装djnago项目:

now install djnago project:

$ djangocms -p . mysite

这篇关于创建新的django-cms项目时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆