歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> Python連接mongodb環境配置

Python連接mongodb環境配置

日期:2017/3/1 10:25:17   编辑:Linux編程

1)安裝python-devel,如果不安裝的話在安裝pymongo時會出現報警

  1. WARNING: The pymongo._cmessage extension module could not
  2. be compiled. No C extensions are essential for PyMongo to run,
  3. although they do result in significant speed improvements.
  4. If you are seeing this message on Linux you probably need to
  5. install GCC and/or the Python development package for your
  6. version of Python. Python development package names for popular
  7. Linux distributions include:
  8. RHEL/CentOS: python-devel
  9. Debian/Ubuntu: python-dev
  10. Above is the ouput showing how the compilation failed.
  1. yum install python-devel
2)安裝pymongo
  1. easy_install pymongo
Copyright © Linux教程網 All Rights Reserved