【问题标题】:Error in DjangoCMS setupDjangoCMS 设置错误
【发布时间】:2014-05-22 11:25:13
【问题描述】:

我使用 pip 安装了 DjangoCMS,但是当我尝试启动时:

djangocms -p 。我的应用程序

使用 DjangoCMS 创建一个新项目并回答所有设置问题时出现此错误:

命令 /home/b.esque/Escritorio/eb/bin/python -c "import setuptools, tokenize;file='/home/b.esque/Escritorio/eb/build/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" 安装 --record /tmp/pip-hYUC5s-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/b.esque/Escritorio/eb/include/site/python2.7 失败并出现错误 /home/b.esque/Escritorio/eb/build/Pillow Traceback 中的代码 1(大多数 最近通话最后):文件“/home/b.esque/Escritorio/eb/bin/djangocms”, 第 9 行,在 load_entry_point('djangocms-installer==0.5.0', 'console_scripts', 'djangocms')() 文件 “/home/b.esque/Escritorio/eb/local/lib/python2.7/site-packages/djangocms_installer/main.py”, 第 25 行,在执行中 install.requirements(config_data.requirements) 文件“/home/b.esque/Escritorio/eb/local/lib/python2.7/site-packages/djangocms_installer/install/init.py”, 第 64 行,在要求中 exit_status = pip.main(args) 文件 "/home/b.esque/Escritorio/eb/local/lib/python2.7/site-packages/pip/init.py", 第 185 行,主要 返回 command.main(cmd_args) 文件“/home/b.esque/Escritorio/eb/local/lib/python2.7/site-packages/pip/basecommand.py”, 第 161 行,主要 text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)

我使用的是 Ubuntu 12.0.4。关于如何解决这个问题的任何想法?

【问题讨论】:

    标签: django-cms


    【解决方案1】:

    问题在于枕头和 python 标头。

    sudo apt-get install python-dev
    pip install pillow
    

    如果您收到此错误,请按照以下说明操作:

    EnvironmentError: Pillow is not compiled with JPEG support, see 'Libraries installation issues' documentation section.
    

    Getting error while running django-cms demo page

    【讨论】:

      猜你喜欢
      • 2017-03-14
      • 1970-01-01
      • 2015-10-04
      • 2015-10-17
      • 1970-01-01
      • 2017-05-09
      • 1970-01-01
      • 2011-01-30
      • 1970-01-01
      相关资源
      最近更新 更多