简体   繁体   English

Pycharm - 未安装类型提示

[英]Pycharm - Type hints are not installed

I keep getting this warning in PyCharm 2018.3.5: "Type hints are not installed". 我一直在PyCharm 2018.3.5中收到此警告:“未安装类型提示”。

在此输入图像描述

If I click 'Install', a log message like this appears: 如果单击“安装”,将显示如下日志消息:

6:11 PM Packages installed successfully: Installed packages: 'djangorestframework-stubs' 6:11 PM软件包安装成功:已安装的软件包:'djangorestframework-stubs'

But then the warning reappears in a few minues. 但随后警告再次出现在几分钟内。 How to fix it? 怎么解决? If it matters, I have a remote Docker Compose interpreter configured for the project, which is otherwise working fine. 如果重要,我有一个为项目配置的远程Docker Compose解释器,否则工作正常。

I created a ticket in PyCharm's bug tracker about this problem: https://youtrack.jetbrains.com/issue/PY-34624 我在PyCharm的bug追踪器中创建了一个关于这个问题的票: https//youtrack.jetbrains.com/issue/PY-34624

What basically happens: 基本上发生了什么

  1. PyCharm finds djangorestframework installed and proposes to install a stub package for it as djangorestframework-stubs is missing PyCharm发现安装了djangorestframework并建议为它安装一个存根包,因为缺少djangorestframework-stubs
  2. You click Install 单击“ 安装”
  3. PyCharm starts the container and installs djangorestframework-stubs there PyCharm启动容器并在那里安装djangorestframework-stubs
  4. PyCharm stops the container PyCharm停止了容器
  5. Now djangorestframework-stubs is gone 现在djangorestframework-stubs消失了
  6. Repeat from 1. 从1开始重复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM