The PyMongo Library provides python interfaces for mongodb operations. if you want to use python to operate mongodb, you must install PyMongo. There are many installation methods. here we will introduce two methods. Source code installation: the PyMongo source code is stored in the git library and can be downloaded locally using git. for git installation instructions, see http://www.netingcn.com/centos-git.html. the installation command is as follows: gitclonegit://github.com
The PyMongo Library provides python interfaces for mongodb operations. if you want to use python to operate mongodb, you must install PyMongo. There are many installation methods. here we will introduce two methods.
Source code installation:
The PyMongo source code is stored in the git library and can be downloaded locally using git. for git installation instructions, see http://www.netingcn.com/centos-git.html. the installation command is as follows:
git clone git://github.com/mongodb/mongo-python-driver.git pymongocd pymongo/python setup.py install
Install with easy_install:
Easy_install is a tool that is not provided by the system and needs to be installed. it functions like pear in Php, gem in Ruby, or cpan in Perl. The installation command is as follows:
wget -q http://peak.telecommunity.com/dist/ez_setup.pypython ez_setup.py
Run the following command to install PyMongo:
easy_install pymongo