ubuntu下pip升级后仍然报错“There was an error checking the latest version of pip.” 升级命令 pip install --upgrade pip 查找缓存目录 python -m pip cache dir 删除文件夹 cd to-your-path rm -rf selfcheck –至此,ok,pip安装不会再有warning。