F
F
fedomax2017-11-15 16:54:42
Python
fedomax, 2017-11-15 16:54:42

How to set up anaconda py for external connections (API, PIP) with proxy and authentication?

there is a need to use in use requests.get;pip install.
I use JNotbook.
In all cases of connections with the outside world, you need to somehow register a proxy and a user login / password.
scheme:

!pip install --proxy domen\login:[email protected]:port pyinstaller

with the proxy properties copied from IE xxx does not work. I read about the cntlm method but did not get into the setup.
I would be grateful for a tip. Maybe someone faced similar problems?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
telman8, 2017-11-15
@telman8

pip does not work with ntlm v2.
Put cntlm,
Further smd C: \ Program Files (x86) \ Cntlm \ cntlm.exe -H -u-d yuzerneym your domain getting
hash: the
Password:
PassLM 945D8CF7AC03D3E6552C4BCA4AEBFB11
PassNT 8A0E2DC0C5DAD839405525C16C4CD574 PassNTLMv2 513F79A8481F49FECFB9BF45263CB138
You copy the
last 3 lines in the file C: \ Program Files (x86)\Cntlm\cntlm.ini restart the cntlm service.
then run cmd.exe, enter set https_proxy=localhost:3128 and after pip install .....
In the cntlm.ini file, you must also specify the corporate address.
For example:
Proxy proxy:8080

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question