Datetimefield、EmailField不可调用,PrimaryKeyRelatedField具有意外的参数

2024-04-25 14:19:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我遇到了一个问题,我的pycharm或virtualenv或系统。你知道吗

我正在使用ubuntu、Pycharm作为IDE、python3.6.3和给定的库列表

dataclasses==0.6
Django==2.1.7
django-cors-headers==2.4.0
django-currentuser==0.3.3
django-filter==2.0.0
django-localflavor==2.1
django-stubs==0.9.0
djangorestframework==3.9.2
djangorestframework-camel-case==0.2.0
djangorestframework-jwt==1.11.0
djangorestframework-stubs==0.3.0
future==0.16.0
mypy==0.670
mypy-extensions==0.4.1
mysqlclient==1.3.13
Pillow==5.4.1
PyJWT==1.6.4
pytz==2018.5
serializers==0.2.4
typed-ast==1.3.1
typing-extensions==3.7.2

我的魅力引发了一系列问题:

enter image description here

enter image description here

enter image description here

这个项目过去在早上工作得很好,但几个小时后,我开始遭受这种问题。我已经尝试重新启动我的Pychar,Pycharm重新安装,我甚至做了一个新的virtualenviroment。。。你知道吗

我不知道怎么修


Tags: django列表virtualenvubuntu系统extensionsidedjangorestframework
1条回答
网友
1楼 · 发布于 2024-04-25 14:19:43

我删除了这些库:

dataclasses==0.6
future==0.16.0
mypy==0.670
mypy-extensions==0.4.1
serializers==0.2.4
typed-ast==1.3.1
typing-extensions==3.7.2

其中有些是皮查姆提出的。我安装了它,并开始期待上述问题。你知道吗

相关问题 更多 >