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

问题描述 投票:1回答:1

我遇到了pycharm或virtualenv或系统的问题。

我使用ubuntu,Pycharm作为IDE,python 3.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

我的pycharm报告了一系列问题:

enter image description here

enter image description here

enter image description here

该项目早上工作正常,但几个小时后我开始遇到这个问题。我试图重新启动我的Pychar,Pycharm重新安装,我甚至做了一个新的virtualenviroment ...

我不知道如何解决它

python pycharm
1个回答
1
投票

我删除了这些库:

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

其中一些是Pycharm建议的。我安装了它并开始期待上述问题。

© www.soinside.com 2019 - 2024. All rights reserved.