Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器 软件资源

软件开发小程序制作系统集成与运维空间租用硬件开发视频监控技术咨询与支持——联系电话:0311-88999002/88999003

首页 / 操作系统 / Linux / Python连接mongodb环境配置

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.   
  5. If you are seeing this message on Linux you probably need to  
  6. install GCC and/or the Python development package for your  
  7. version of Python. Python development package names for popular  
  8. Linux distributions include:  
  9.   
  10. RHEL/CentOS: python-devel  
  11. Debian/Ubuntu: python-dev  
  12.   
  13. Above is the ouput showing how the compilation failed.  
  1. yum install python-devel  
2)安装pymongo
  1. easy_install pymongo