是否有适用于Python 3.2的PyMongo?

是否有适用于Python 3.2的PyMongo?

问题描述:

我试图通过 easy_install pymongo 安装到Windows 3.2的Windows机器上,却发现由于与Python 3.2不兼容而无法安装.

I attempted to install pymongo to my Windows box with Python 3.2 through easy_install, only to find that it will not install due to incompatibilities with Python 3.2.

因此,有什么与pymongo等效的工具可以在Python 3.2中使用吗? MongoDB是我在Python 2.7上开发的应用程序的组成部分,要迁移到Python 3.2,我将需要保持这种交互性.

Therefore, is there an equivalent to pymongo that will work with Python 3.2? MongoDB is an integral part of the application I was developing on Python 2.7, and to move to Python 3.2 I will need to retain this interactivity.

谢谢!

此答案已过时. PyMongo现在正式支持Python 3.

答案已经在评论中给出,但是我将提供全面的摘要:

The answer was already given in comments, but I'll provide a comprehensive summary nontheless:

  • As of May 2011, Python 3 is not officially supported by MongoDB
  • Ticket for "Support for Python 3" has been some years ago (https://jira.mongodb.org/browse/PYTHON-84) so the MongoDB developers are aware of this need.
  • As already told by Adam, there is a port of PyMongo for Python 3 in PyPi (http://pypi.python.org/pypi/pymongo3) which could be used and is defined as "semi-official"
  • Source codes for the Python 3 fork are available at https://github.com/sovnarkom/mongo-python3-driver
  • If you want make on impact on making this fork official make an upvote to its ticket (https://jira.mongodb.org/browse/PYTHON-84)
  • With enough upvotes/user requests, I would expect to get an official Python 3 driver someday