以为直接可以
pip install hmmlearn
结果安装过程中报错:
Collecting scikit-learn>=0.16 (from hmmlearn)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/scikit-learn/
Could not find a version that satisfies the requirement scikit-learn>=0.16 (from hmmlearn) (from versions: )
No matching distribution found for scikit-learn>=0.16 (from hmmlearn)
看了一下官网,给的是——
pip install -U --user hmmlearn
没毛病。
查了一下解决办法,让在https://www.lfd.uci.edu/~gohlke/pythonlibs/下载whl然后
pip install hmmlearn‑0.2.3‑cp38‑cp38‑win_amd64.whl
……折腾了一会发现是针对windows安装
换了清华的源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple hmmlearn
总是中途卡壳
最后先把scikit-learn
装了,分步装,终于成了。
网友评论