无法从kombu导入任何内容

2024-05-18 12:23:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我很困惑。我正在逐字逐句地跟踪kombu文档。我在虚拟环境中运行。有人有类似的问题吗?在

(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
>>>

Tags: frompyimportamqpforsetupconnectionconsumers

热门问题