美文网首页
pip安装问题汇总

pip安装问题汇总

作者: yayalisa小可乐 | 来源:发表于2018-11-04 00:01 被阅读0次

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

    然后就成功啦

    相关文章

      网友评论

          本文标题:pip安装问题汇总

          本文链接:https://www.haomeiwen.com/subject/xoglxqtx.html