【问题标题】:{OverflowError} Python int too large to convert to C long{OverflowError} Python int 太大而无法转换为 C long
【发布时间】:2018-08-28 17:11:02
【问题描述】:

得到以下错误

{OverflowError}Python int too large to convert to C long

跑步时。

EN_Users.objects.get(id=1) # EN_User --> Model | id--> primary key

非常感谢任何解决此问题的帮助。

【问题讨论】:

    标签: django python-3.x django-models


    【解决方案1】:

    在此处查看问题原因:"OverflowError: Python int too large to convert to C long" on windows but not mac

    如果可能,您应该能够通过删除 int 强制转换并坚持默认浮点数来纠正它。

    【讨论】:

    • 我看过这个链接,我很清楚这个问题,但不知道如何解决。
    猜你喜欢
    • 1970-01-01
    • 2016-12-29
    • 1970-01-01
    • 2021-04-25
    • 2015-10-12
    • 2016-01-09
    • 2018-06-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多