Python:从嵌入式 ZIP 文件通过 NTLM 安装 PIP [英] Python: Installing PIP via NTLM from embedded ZIP file
问题描述
所以我从
谢谢
这可能很复杂,但也不是不可能.此外,我还没有亲自测试过任何这些,这些是您可以研究的更多方向.
首先我会看看这个.重点是找到您的 python??._pth
文件并取消注释 import site
行.
但是你说 get-pip.py
没有用,对吧?(从这里)
python get-pip.py --proxy="http://[user:passwd@]proxy.server:port"
所以你可以用另一种方式下载wheels,然后尝试类似的方法来绕过网络问题(从这里):
<块引用>python pip-10.0.1-py2.py3-none-any.whl/pip install --no-index pip-10.0.1-py2.py3-none-any.whl
一旦您运行了 pip,您就可以慢慢构建一个足够舒适的 Python 环境.但我相信你仍然会受到严重限制,我认为标准库的某些部分会丢失等等.
也许您应该努力解决阻止您获得标准 Python 安装的问题.
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
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.
这篇关于Python:从嵌入式 ZIP 文件通过 NTLM 安装 PIP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!