gpt4 book ai didi

python - 安装 django 项目时出错 AttrributeError : module 'collections' has no attribute 'Iterator'

转载 作者:行者123 更新时间:2023-12-05 09:29:48 25 4
gpt4 key购买 nike

我正在尝试使用这个项目 https://github.com/tangjon/Build-a-PC-Configuration-Tool但我在这个过程中有一个错误。首先,我使用此命令克隆项目:

git clone https://github.com/tangjon/Build-a-PC-Configuration-Tool.git

之后我要更改目录并转到:

cd Build-a-PC-Configuration-Tool

安装要求:

pip install -r requirements.txt

再次更改目录以进入 manage.py 进行迁移:

cd bapccanada

然后迁移:

python manage.py make migrations

这里是错误AttributeError: module 'collections' has no attribute 'Iterator' enter image description here

有解决错误的想法吗?提前致谢!

最佳答案

该项目中的 Django 版本与 Python 3.10 不兼容。

你需要要么

  • 使用旧版本的 Python(该项目使用的 Django 2.x 最高支持 Python 3.7)
  • 最好做一些工作,使项目与更新版本的 Django 兼容。在撰写本文时,Django 4.0 刚刚发布几天。然后,您可以将这些更改作为拉取请求贡献回项目。

关于python - 安装 django 项目时出错 AttrributeError : module 'collections' has no attribute 'Iterator' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70347099/

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