pip安装问题汇总

2018-11-04  本文已影响0人  yayalisa小可乐

安装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

然后就成功啦

上一篇下一篇

猜你喜欢

热点阅读