IBM Support

Error in Watson Studio Local when installing package in Jupyter notebook: Failed to establish a new connection: [Errno 101] Network is unreachable

Troubleshooting


Problem

Installing package CVXPY in Jupyter Notebook in WSL is failing with below error messages. 
----------------------------------
!pip install cvxpy
---------------------------------
Collecting cxvpy
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f803bb11da0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/cxvpy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f803bb11cf8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/cxvpy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f803bb11e48>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/cxvpy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f803baaf2e8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/cxvpy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f803baaf4a8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/cxvpy/
ERROR: Could not find a version that satisfies the requirement cxvpy (from versions: none)
ERROR: No matching distribution found for cxvpy.

Resolving The Problem

Error is pointing at a networking issue. This is not a PIP issue. Most probable cause is the kind of network that is used. This issue generally happens when you're behind a proxy.

Try to configure pip to connect thru your proxy server.

pip install cvxpy --proxy="<ip address>:<port>"  (see https://pip.pypa.io/en/stable/user_guide/#using-a-proxy-server)


Document Location

Worldwide


[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGWL","label":"IBM Watson Studio Local"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

More support for:
IBM Watson Studio Local

Software version:
All Versions

Operating system(s):
Linux

Document number:
1075953

Modified date:
30 December 2019

UID

ibm11075953