这种错误,我装了个scikit-image,后来执行某个某个程序,就报这个错误
pip install mkl
Collecting mkl
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fab82919be0>: Failed to establish a new connection: [Errno 113] 没有到主机的路由',)': /simple/mkl/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fab82919240>: Failed to establish a new connection: [Errno 113] 没有到主机的路由',)': /simple/mkl/
用pip 直接安装这个,报这个错误,后来用这个可以 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkl
不知道是不是我之前设置了源的原因,但是并没有解决标题的错误。
解决办法:
用conda更新scikit-learn
执行命令:conda upgrade scikit-learn
出现这个错误,
Fetching package metadata ...
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/main/linux-64/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/main/linux-64/repodata.json.bz2 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f2f199a7eb8>: Failed to establish a new connection: [Errno 113] No route to host',))",),)
--感觉像是源的问题,把conda换源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
成功安装
在执行某个程序,不报标题错误