冉
conda update --all
完成了。之后,在conda中执行任何操作时都会抛出错误
ImportError: No module named 'ruamel_yaml'
echo $PATH
/opt/local/bin:/opt/local/bin:/Users/*username*/anaconda/bin:/usr/local/fsl/bin:/opt/spark/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin
和which conda
输出
/Users/*username*/anaconda/bin/conda
如果我pip install ruamel.yaml
我得到了
Requirement already satisfied: ruamel.yaml in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: ruamel.ordereddict; platform_python_implementation == "CPython" and python_version <= "2.7" in /usr/local/lib/python2.7/site-packages (from ruamel.yaml)
答案 0 :(得分:0)
不是真正的答案,但由于某种原因,anaconda中的几个软件包在将org.springframework.test.web.servlet.result.MockMvcResultMatchers
运行到本机OSx python后改变了路径。损坏超出了人工修正,所以我完全重新加入了anaconda。
完全删除anaconda后,我无法重现此行为,并再次运行conda update --all
。
请参阅@millimoose评论以获得更深入的解释。