主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录

AustEcon

Avatar
  • 活动总数 4
  • 最后的活动 2020年06月24日 19:40
  • 成员加入日期 2020年05月04日 11:43
  • 关注 0 名用户
  • 关注者数 0 名用户
  • 投票数 0
  • 订阅数 1
活动概览 帖子(0) 评论(3)
按最近的活动排序 最近的活动 投票数
  • 创建于 2020年05月04日 11:43
    Ah! I have been having this problem for a long time too and it means that you miss out on all of the autocomplete and inspections... (with ugly, red underlined imports...).. Marking the top level d...
    1. 社区
    2. PyCharm
    3. Very frustrated--PyCharm says local import is unresolved reference
    • 4 票
  • 创建于 2020年06月24日 19:35
    I'm just a user same as you but I believe you need to nest some_package inside of package to do relative imports as you are wanting to do. It's just how python works I'm afraid. So you need to cha...
    1. 社区
    2. PyCharm
    3. Very frustrated--PyCharm says local import is unresolved reference
    • 1 票
  • 创建于 2020年06月24日 19:40
    Then you should use relative imports after restructuring. Like this from .other_package import other_script Everything will work out better for you that way.
    1. 社区
    2. PyCharm
    3. Very frustrated--PyCharm says local import is unresolved reference
    • 1 票
Copyright © 2000– JetBrains s.r.o.