pip安装问题汇总

安装gensim

遇到了如下报错


截图

Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

在stackoverflow查询,得到如下方法解决

https://stackoverflow.com/questions/50421287/pip-cannot-uninstall-ipython-it-is-a-distutils-installed-project-and-thus-w

You can upgrade  without uninstall the old version

问题原因是我在安装gensim的时候发现我原来已经安装的scipy,所以安装不知道如何选择文件夹。解决方式是要么卸载原来的scipy,要么忽略掉这个安装。我选择忽略:输入如下代码

sudo -H pip install gensim --ignore-installed -U scipy

然后就成功啦

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容