【问题标题】:How to solve the problem of installing django-simple-history?如何解决安装django-simple-history的问题?
【发布时间】:2022-08-05 13:25:10
【问题描述】:

在我的项目中,我需要使用 django-simple-history 但是当我运行命令时:pip install django-simple-history 我得到了错误:

无法为 django-simple-history 构建轮子,这是安装基于 pyproject.toml 的项目所必需的 See complete log

请任何解决方案,在此先感谢您。

标签: python django pip


【解决方案1】:

让我们看看这些步骤是否可以解决您的问题。

  1. PyPI下载文件
    1. 使用pip 安装文件
    python -m pip install ./path/to/file
    

    最后但同样重要的是,如果您认为这是一个错误,请考虑通过Github 提交问题

【讨论】:

    【解决方案2】:

    检查您是否安装了所需的 Python 和 Django 版本(https://django-simple-history.readthedocs.io/en/latest/)。 尝试为 Windows 安装早期版本的 django-simple-history:

    py -m pip install django-simple-history=="3.0.0"
    

    【讨论】:

      【解决方案3】:

      确保在 Windows 中禁用路径长度限制:

      Python Installation Screenshot

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-07-14
        • 2019-11-16
        • 2021-03-06
        • 1970-01-01
        • 1970-01-01
        • 2022-06-10
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多