Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have installed the module "six", and it can be found by the PyCharm Interpreter.
PyCharm Interpreter:
However, PyCharm reports that it cannot resolve reference 'queue' which should be imported from six.
Unresolved reference queue:
你的代码很好。这是因为移动的属性和模块six是延迟加载的,因此 PyCharm 无法解析引用。
six
Module_six_moves_urllib_parse请参阅 中的类的源代码six.py。
Module_six_moves_urllib_parse
six.py
我有同样的问题,如果你有六个导入,你可以按如下方式导入队列:
import six import queue
它对我有用,希望它也对你有用。