我试图在virtualenv中用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
PILOW的安装似乎没有libjpeg (用于枕头中的JPEG支持)和zlib (用于Pillow中的PNG支持),但是在窗口上有没有“简单”的方法来获取它们? 禁用不是解决scheme,因为他们是需要django-cms …
也许这个解决scheme会起作用,但是对于virtualenv来说,它不是一个漂亮的解决scheme。
但问题应该可以解决? 😉
您正在链接到旧版本的文档。 最新版本https://pillow.readthedocs.io/en/4.1.1/installation.html说:
一般来说,我们的目标是支持所有当前版本的Linux,macOS和Windows。
但:
我们不建议尝试在Windows上构建。 这是一个弯曲的通道迷宫,大多是死胡同。 在winbuild目录中有Windows构建的构建脚本和注释。
然而:
我们为Windows,枕头和可执行安装程序中的32位和64位版本提供支持Pythons的矩阵编译的枕头二进制文件。 这些二进制文件包含了所有的可选库
所以我建议你用普通的方式安装。