Bibof
Bibof

Reputation: 61

Proxy Connection Error when trying to install packages with pip in anaconda environment

I'm trying to install a package (tensorflow) utilizing pip in an anaconda environment pip install --upgrade tensorflow on Windows Server 2016, resulting in the following error:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/tensorflow/

I'm in a corporate network and the proxy for anaconda is set.

I've already tried the following things which don't help, the same error is still popping up:

Any help or hint is appreciated!

Upvotes: 0

Views: 1983

Answers (1)

Bibof
Bibof

Reputation: 61

I solved the problem through the command pip install --upgrade tensorflow--proxy="myproxy.blabla:8080 after searching in Windows for "Services", scrolling to "Cntlm Authentication Proxy" and hitting "Start the Service".

Note that executung "Start cntlm authentication proxy"-script didn't work.

Upvotes: 2

Related Questions