gpt4 book ai didi

PyCharm from Six.moves 导入队列 : unresolved reference 'queue'

转载 作者:行者123 更新时间:2023-12-04 16:12:01 26 4
gpt4 key购买 nike

我已经安装了模块“六”,它可以被 PyCharm 解释器找到。

PyCharm 解释器:

enter image description here

但是,PyCharm 报告它无法解析应该从六个导入的引用“队列”。

未解析的引用队列:

enter image description here

最佳答案

你的代码很好。这是因为在 six 中移动了属性和模块。延迟加载,因此 PyCharm 无法解析引用。

参见类 Module_six_moves_urllib_parse 的源代码在 six.py .

关于PyCharm from Six.moves 导入队列 : unresolved reference 'queue' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40560237/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com