gpt4 book ai didi

python - DjangoCMS 创建项目失败

转载 作者:太空宇宙 更新时间:2023-11-04 05:51:50 26 4
gpt4 key购买 nike

我在 Windows 系统上并关注 Install Django CMS tutorial .根据它,我用 Python 3.4.3 设置了新的虚拟环境,用 pip 安装了 Djangocms-installer 并运行命令

(env) PS D:\Skyro\Documents\djangocms-project\sites> djangocms -p . mysite

当我回答安装人员的问题时,我得到了带有错误消息的输出:

Creating the project
Please wait while I install dependencies
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Roman\AppData\Local\Temp\pip-build-0v8y2934\django-select2-py3

我不明白哪里出了问题,如果您向我解释这是什么意思以及如何解决它,我会很高兴。

我从一开始的安装过程:

  1. 使用默认路径安装 Python 3.4.3 并启用所有选项。
  2. pip install --upgrade pip (6.0.8 -> 6.1.1)
  3. pip install --upgrade setuptools (12.0.5 -> 15.1)
  4. pip install virtualenv
  5. 移动到工作文件夹并运行virtualenv env
  6. 使用激活虚拟环境。\env\Scripts\activate
  7. pip install djangocms-installer
  8. 创建并移动到空文件夹“sites”
  9. djangocms -p 。我的网站
  10. 回答安装人员的问题
  11. 获取错误信息

也许我也应该安装 Django,但目前安装 Django(1.8 或 1.7)无法解决此错误。

最佳答案

显然这是当前 django-select2-py3 包的问题。官方 django-select2 它也是处理 python 3 的好方法,但尚未发布官方包。您使用的是哪个版本的安装程序以及您在安装程序向导中选择了哪些选项?

关于python - DjangoCMS 创建项目失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29875933/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com