首页 > 数据库 > mongoDB开发:pymongo的安装

mongoDB开发:pymongo的安装

1、安装mongoDB数据库

2、安装easy_install:下载地址http://pypi.python.org/packages/2.7/s/setuptools/

我使用的是setuptools-0.6c11-py2.7.egg版本,在命令行运行:

sh setuptools-0.6c11-py2.7.egg

进行安装

3、安装pymongo

PyMongo is in the Python Package Index. To install PyMongo using setuptools do:

$ easy_install pymongo

To upgrade do:

$ easy_install -U pymongo

If you’d rather install directly from the source (i.e. to stay on the bleeding edge), check out the latest source from github and install the driver from the resulting tree:

$ git clone git://github.com/mongodb/mongo-python-driver.git pymongo$ cd pymongo/$ python setup.py install

Installing Without C Extensions

By default, the driver attempts to build and install optional C extensions (used for increasing performance) when it is installed. If any extension fails to build the driver will be installed anyway but a warning will be printed.

In certain cases, you might wish to install the driver without the C extensions, even if the extensions build properly. This can be done using a command line option to setup.py:

$ python setup.py --no_ext install

有关pymongo地址:http://api.mongodb.org/python/1.9%2B/index.html

转载请标明出处:萝卜根

原文地址请标明:原文地址

  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
*

:yund: :yun: :yes: :xiaxia: :xiaom: :xiaohan: :wuyu: :wuxiao: :woshou: :woquan: :wink: :tiaodou: :tiaod: :sikao: :pa: :oops: :ok: :no: :mad: :lihai: :leihua: :lei: :ku: :konghe: :kbu: :jiwai: :jiong: :jiay: :huo: :huaixiao: :hanxiao: :han: :haha: :guolai: :guan: :guai: :ganga: :eek: :dou: :diao: :deng: :buli: :bizui: :bishi: :biggrin: :arrow: