一个命令,解决“AttributeError: '_NamespacePath' object has no attribute 'sort'”

 

问题描述:使用pip/pip3时,提示:AttributeError: '_NamespacePath' object has no attribute 'sort'


 系统:Ubuntu 16.04

Python:Python 3.5

尝试做Mask RCNN时出现pip3安装问题,折腾了一个下午,看到这个解决方案,完美解决。

个人估计,问题应该是setuptools版本不兼容。

AttributeError: '_NamespacePath' object has no attribute 'sort'
wget https://bootstrap.pypa.io/ez_setup.py -O - | python

(使用easy_install 自动更新setuptools)

你可能感兴趣的:(一个命令,解决“AttributeError: '_NamespacePath' object has no attribute 'sort'”)