Conda在我使用它運行任何命令時發生錯誤。Conda'ImportError:No module named ruamel.yaml.comments'
Traceback (most recent call last):
File "/usr/local/bin/conda", line 7, in <module>
from conda.cli.main import main
File "/usr/local/lib/python2.7/dist-packages/conda/cli/__init__.py", line 8, in <module>
from .main import main # NOQA
File "/usr/local/lib/python2.7/dist-packages/conda/cli/main.py", line 46, in <module>
from ..base.context import context
File "/usr/local/lib/python2.7/dist-packages/conda/base/context.py", line 18, in <module>
from ..common.configuration import (Configuration, MapParameter, PrimitiveParameter,
File "/usr/local/lib/python2.7/dist-packages/conda/common/configuration.py", line 40, in <module>
from ruamel.yaml.comments import CommentedSeq, CommentedMap # pragma: no cover
ImportError: No module named ruamel.yaml.comments
檢查是否有幫助:http://stackoverflow.com/questions/40733906/python-conda-traceback-no-module-named-ruamel-yaml-comments – MYGz
@MYGz已經試過這個。 –
如果ruamel包存在或不存在,您可以在系統中遞歸搜索嗎? – MYGz