python - How to install PyMongo -
i trying install mongodb driver python on mac os x (mavericks).
but when run
[ dsl ~/documents/python ] sudo easy_install pymongo
i next output
searching pymongo best match: pymongo 2.7 processing pymongo-2.7-py2.7-macosx-10.9-intel.egg removing pymongo 2.7rc1 easy-install.pth file adding pymongo 2.7 easy-install.pth file using /library/python/2.7/site-packages/pymongo-2.7-py2.7-macosx-10.9-intel.egg processing dependencies pymongo finished processing dependencies pymongo
i seek lot of different commands, nil work. how install pymongo ?
thanks help
edit: when seek utilize in python script
#!/usr/bin/env python3 import pymongo client = mongoclient()
i have error
traceback (most recent phone call last): file "./mongo.py", line 2, in <module> import pymongo importerror: no module named 'pymongo'
try these commands. source
$ easy_install -u setuptools $ python -m easy_install pymongo
python pymongo
No comments:
Post a Comment