python连接mongodb环境配置

1)安装python-devel,如果不安装的话在安装pymongo时会出现报警

WARNING: The pymongo._cmessage extension module could not
be 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 to
install GCC and/or the Python development package for your
version of Python. Python development package names for popular
Linux distributions include:

RHEL/CentOS: python-devel
Debian/Ubuntu: python-dev

Above is the ouput showing how the compilation failed.
yum install python-devel
2)安装pymongo

easy_install pymongo




你可能感兴趣的:(python连接mongodb环境配置)