是否有适用于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:
- 截至2011年5月,MongoDB尚未正式支持Python 3
- 几年前支持Python 3"的票证( https://jira .mongodb.org/browse/PYTHON-84 ),以便MongoDB开发人员意识到这一需求.
- 如Adam所言,PyPi中有一个用于Python 3的PyMongo端口( http://pypi.python.org/pypi/pymongo3 )可以使用,并且定义为半官方"
- 有关Python 3 fork的源代码,请参见 https://github.com/sovnarkom /mongo-python3-driver
- 如果您希望影响此叉子的正式发布,请对其票证进行投票( https ://jira.mongodb.org/browse/PYTHON-84 )
- 有了足够的支持/用户请求,我希望有朝一日能得到一个官方的Python 3驱动程序
- 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