pymongo安装:
参考:http://pypi.python.org/pypi/pymongo/#downloads
$ git clone git://github.com/mongodb/mongo-python-driver.git pymongo
$ cd pymongo/
$ python setup.py install
备注:
yum install git
如果找不到git,要需要先添加EPEL(Extra Packages for Enterprise Linux) repository.
备注:
tarfile.ReadError: file could not be opened successfully
解决: 出现tarfile.ReadError: file could not be opened successfully,下一个zlib-devel安装,重新安装python就OK了
yum install zlib zlib-devel