0
我按照這個說明安裝了mtools
:https://github.com/rueckstiess/mtools/blob/develop/INSTALL.md。我嘗試了pip
和源碼建設,但未能發佈。試圖啓動mlaunch
時,我得到了錯誤。我看到這個錯誤涉及到python,我不熟悉python。有沒有人有任何想法在這個錯誤?如何在Mac OS上使用pip安裝mtools?
$ mlaunch
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/mlaunch", line 9, in <module>
load_entry_point('mtools==1.2.4.dev0', 'console_scripts', 'mlaunch')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2697, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2370, in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2376, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mtools-1.2.4.dev0-py2.7.egg/mtools/mlaunch/mlaunch.py", line 40, in <module>
raise ImportError("Can't import pymongo. See http://api.mongodb.org/python/current/ for instructions on how to install pymongo.")
ImportError: Can't import pymongo. See http://api.mongodb.org/python/current/ for instructions on how to install pymongo.
你有沒有安裝'pymongo'?錯誤指出它缺少「pymongo」。嘗試'pip install pymongo'並再次運行'mlaunch'。 – Jens
它通過安裝'pymongo'工作正常。謝謝。 –
太棒了。我會寫一個答案,以便你可以接受它。 – Jens