赞
踩
pip install scikit-learn
报错:twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed…
提示没有安装PyHamcrest
安装一个就好了
pip install PyHamcrest
然后安装清华镜像的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 已经在了…
安装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
继续安装 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
再次安装 pyLDAvis
错了重来 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。