安装sklearn、pyLDAvis过程

  1. pip install scikit-learn
    报错:twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed…
    提示没有安装PyHamcrest
    安装一个就好了
    pip install PyHamcrest

  2. 然后安装清华镜像的scikit-learn
    python -m pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple
    报错:
    Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
    Requirement already satisfied: scikit-learn in c:\programdata\anaconda3\lib\sit
    -packages (0.19.2)
    就是说人家scikit-learn 已经在了…

  3. 安装pip install pyLDAvis
    Could not find a version that satisfies the requirement pandas>=1.2.0 …
    pip无法找到匹配我环境的pandas
    更新pip版本 pip python -m pip install --upgrade pip

  4. 继续安装 pyLDAvis
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, statu…
    有可能是链接超时错误
    在这里插入图片描述 复制版:
    python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
    pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

  5. 再次安装 pyLDAvis
    在这里插入图片描述

  6. 错了重来 pip install pyLDAvis -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

成功!
不爱动脑子就是我
同理安装其他库 pip install name -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
更新其他库 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple name --upgrade

  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值