Python: Installing PIP via NTLM from embedded ZIP file

别说谁变了你拦得住时间么 提交于 2021-01-29 03:48:32

问题


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:

Thanks


回答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.



来源:https://stackoverflow.com/questions/58373226/python-installing-pip-via-ntlm-from-embedded-zip-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!