【发布时间】:2023-04-01 11:23:01
【问题描述】:
(env) Name-MacBook-Pro-2:site_cms name$ djangocms -f -p . site_cms
Creating the project
Please wait while I install dependencies
If I am stuck for a long time, please check for connectivity / PyPi issues
Dependencies installed
Creating the project
The installation has failed.
*****************************************************************
Check documentation at https://djangocms-installer.readthedocs.io
*****************************************************************
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/djangocms", line 11, in <module>
sys.exit(execute())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/djangocms_installer/main.py", line 44, in execute
django.setup_database(config_data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/djangocms_installer/django/__init__.py", line 407, in setup_database
command, env=env, stderr=subprocess.STDOUT
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 376, in check_output
**kwargs).stdout
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7', '-W', 'ignore', 'manage.py', 'migrate']' returned non-zero exit status 1.
我正在按照此页面上的说明进行操作:
http://docs.django-cms.org/en/develop/introduction/01-install.html
但是我不确定为什么它没有安装。
是否有更多关于错误的详细数据?我正在尝试用谷歌搜索这些行中的每一行,但没有任何内容与我遇到的问题一致。
会不会是Python版本的原因?
这是在 OSX - High Sierra 上。我可能需要做一些事情来让 Django CMS 连接到我的数据库吗?
【问题讨论】: