以為直接可以
pip install hmmlearn
結(jié)果安裝過(guò)程中報(bào)錯(cuò):
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)
看了一下官網(wǎng),給的是——
pip install -U --user hmmlearn
沒(méi)毛病呻待。
查了一下解決辦法打月,讓在https://www.lfd.uci.edu/~gohlke/pythonlibs/下載whl然后
pip install hmmlearn?0.2.3?cp38?cp38?win_amd64.whl
……折騰了一會(huì)發(fā)現(xiàn)是針對(duì)windows安裝
換了清華的源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple hmmlearn
總是中途卡殼
最后先把scikit-learn
裝了,分步裝蚕捉,終于成了奏篙。