我在这里很困惑。我一字不漏地跟着海报文件。我在虚拟环境中运行。有没有人有类似的问题?
(pipes)slim-2:consumers ryan$ pip install kombu
Downloading/unpacking kombu
Downloading kombu-3.0.24-py2.py3-none-any.whl (238kB): 238kB downloaded
Downloading/unpacking amqp>=1.4.5,<2.0 (from kombu)
Downloading amqp-1.4.6-py2-none-any.whl (49kB): 49kB downloaded
Downloading/unpacking anyjson>=0.3.3 (from kombu)
Downloading anyjson-0.3.3.tar.gz
Running setup.py (path:/Users/ryan/.virtualenvs/pipes/build/anyjson/setup.py) egg_info for package anyjson
Installing collected packages: kombu, amqp, anyjson
Running setup.py install for anyjson
Successfully installed kombu amqp anyjson
Cleaning up...
(pipes)slim-2:consumers ryan$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from kombu import Connection
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "kombu.py", line 9, in <module>
from kombu import Connection
ImportError: cannot import name Connection
>>>