查找了很多资料,最终还是手动删除吧: 注意如果你有火萤酱或everything等外部索引的,来搜索如图PyYAML的进行删除,可能删不干净 建议最后在你的anaconda路径下或者python路径下在搜索一下,注意别的包下的类似名不要删除 删除完后执行卸载: >>>pip uninstall PyYAMLSkipping PyYAML as it is not installed.
使用sudo pip install ......的时候出现下面一段黄色的代码: The directory '/home/stone/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip
问题描述 今天使用pip安装python包的时候,提示可以升级到最新版的pip,然后就升级了pip,从8.1.1到19.0.3,结果,就出现了下面的问题,pip不能用了: Traceback (most recent call last): File , in <module> from pip import main ImportError: cannot import name main 环境:Ubuntu 16.04 原因 最后查到的原因是之前安装的pip是通过ubuntu的apt包管理