Configure the python connection to the MongoDB Environment

Source: Internet
Author: User

1) install Python-devel. If Python-devel is not installed, an alert will be reported when pymongo is installed.

Warning: The pymongo. _ cmessage extension module cocould notbe compiled. no C extensions are essential for pymongo to run, although they do result in significant speed improvements. if you are seeing this message on Linux you probably need toinstall GCC and/or the python development package for yourversion of Python. python development package names for popularlinux distributions include: RHEL/centos: Python-develdebian/Ubuntu: Python-devabove is the ouput showing how the compilation failed.
Yum install Python-devel

2) 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.