按照网上说的执行以下命令
sudo pip install --upgrade setuptools
sudo pip install --upgrade pip
结果
Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, outside environment /usr
虽然有下载但更新并不成功
应该跟python2/3环境有关
执行以下命令
sudo apt-get install python3-pip
解决问题
参考文献:https://stackoverflow.com/questions/14426491/python-3-importerror-no-module-named-setuptools