擅长:python、mysql、java
<p>您的项目中是否有一个名为<code>zmq.py</code>的文件,而您意外地导入了该文件?在</p>
<p>在python2.x(from<a href="https://www.python.org/dev/peps/pep-0328/#rationale-for-absolute-imports" rel="nofollow">PEP 328</a>)中应该始终使用绝对导入来避免这些类型的问题。在</p>
<pre><code>from __future__ import absolute_import
</code></pre>