1

So I have downloaded the "Windows x86-64 embeddable zip file" from https://www.python.org/ftp/python/3.7.4/python-3.7.4-embed-amd64.zip and it works well

I want to install PIP so I also got https://bootstrap.pypa.io/get-pip.py

However it's throwing up a 407 proxy authentication error and despite me putting proxy information in, I presume at this point that NTLM is to blame.

My question is how would I get around this? Is it possible to install PIP/Setuptools via the embeddable zip method 100% offline?

I want to eventually use pandas and requests

I tried what pip with embedded python suggests but get the below:

enter image description here

Thanks

pee2pee
  • 3,619
  • 7
  • 52
  • 133

1 Answers1

1

It might be complicated but probably not impossible. Also I haven't tested any of this personally, these are more directions that you could look into.

First I would have a look at this. The important point is to find your python??._pth file and uncomment the import site line.

But you say get-pip.py did not work, right? (from here)

python get-pip.py --proxy="http://[user:passwd@]proxy.server:port"

So you could download the wheels another way and then try something like this to bypass the network issues (from here):

python pip-10.0.1-py2.py3-none-any.whl/pip install --no-index pip-10.0.1-py2.py3-none-any.whl

Once you have pip running you can slowly build a Python environment that is comfortable enough to work with. But I believe you would still be severely limited, I think parts of the standard library will be missing and so on.

Maybe you should work on solving the issues preventing you from getting a standard Python installation instead.

sinoroc
  • 18,409
  • 2
  • 39
  • 70
  • Thanks - will give this a go - IT will not allow us to have it installed because apparently developers aren't to be trusted – pee2pee Oct 14 '19 at 11:33
  • So I gave this a go and still get the same 407 proxy error (as shown in edited question). Proxy is NTLM so don't believe this will work will it? – pee2pee Oct 14 '19 at 11:45
  • Show the command that lead to this error, otherwise it is useless information. My instructions should not need a direct network connection, so I doubt the error you are showing in your edit is relevant. – sinoroc Oct 14 '19 at 12:12