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