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-devel2)安装pymongo
easy_install pymongo

1224

被折叠的 条评论
为什么被折叠?



