【发布时间】:2017-04-28 08:40:27
【问题描述】:
我正在尝试在虚拟环境中使用 Python3 在 Windows 10 上运行 django-cms。
如果我按照他们网站上的安装步骤并运行命令djangocms mysite,则会收到此错误:
Creating the project
Please wait while I install dependencies
Dependencies installed
Creating the project
*****************************************************************
Check documentation at https://djangocms-installer.readthedocs.io
*****************************************************************
Traceback (most recent call last):
File "c:\users\guter\appdata\local\programs\python\python36-32\lib\runpy.py",
line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\guter\appdata\local\programs\python\python36-32\lib\runpy.py",
line 85, in _run_code
exec(code, run_globals)
File "C:\Users\guter\AppData\Local\Programs\Python\Python36-
32\Scripts\djangocms.exe\__main__.py", line 9, in <module>
File "c:\users\guter\appdata\local\programs\python\python36-32\lib\site-
packages\djangocms_installer\main.py", line 36, in
execute
install.check_install(config_data)
File "c:\users\guter\appdata\local\programs\python\python36-32\lib\site-
packages\djangocms_installer\install\__init__.py",
line 79, in check_install
raise EnvironmentError('\n'.join(errors))
OSError: Pillow is not installed check for installation errors and see
"Libraries installation issues" documentation section:
https://djangocms-installer.readthedocs.io/en/latest/libraries.html
PIL 的安装似乎缺少 libjpeg(用于 Pillow 中的 JPEG 支持)和 zlib(用于 Pillow 中的 PNG 支持),但是否有“在 Windows 上“简单”的方式来获取它们?禁用不是解决方案,因为它们是 django-cms 所需的......
也许this 解决方案会起作用,但对于 virtualenv,它不是一个很好的解决方法...
但是问题应该是可以解决的吧? ;-)
【问题讨论】:
标签: windows zlib django-cms pillow libjpeg