Install the PyMongo Library in centos

Source: Internet
Author: User
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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.