我正在使用pip2.7并尝试安装mayavi。我跑 sudo pip2.7安装mayavi并得到此错误
from .dist import _get_unpatched
File "/usr/local/lib/python2.7/site-packages/setuptools/dist.py", line 21, in <module>
packaging = pkg_resources.packaging
AttributeError: 'module' object has no attribute 'packaging'
实际上错误日志更长,但我认为这部分很重要。
谢谢