在python2.7的环境下,使用pip install pymongo安装模块报以下错误: Could not install packages due to an EnvironmentError: [Error 5] : 'd:\\program files\\python2.7\\Lib\\site-packages\\bson\\_cbson.pyd'Consider using the `--user` option or check the permissions 根据错误提示,…
下载驱动包: https://pypi.org/project/pymongo/ 解压: tar zxvf pymongo-3.8.0.tar.gz 安装: python setup.py install 测试python环境中与monogdb的交互. from pymongo import MongoClient client = MongoClient("localhost",40000) db=client.test for i in xrange(2000000):…
cd /usr/local/src wget --no-check-certificate https://pypi.python.org/packages/source/p/pymongo/pymongo-2.6.3.tar.gz#md5=da4a7d6ee47fe30b3978b8805d266167 tar zxvf pymongo-.tar.gz cd pymongo- python setup.py install…