且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在没有pip的情况下安装python模块?

更新时间:2021-08-27 00:37:15

我以前见过此错误,它通常是由公司代理背后引起的,或者是您被伪造的.
假设它是代理,您需要确定您的https代理是什么并将其添加到pip命令中,如下所示:

I've seen this error before, it is usually caused by being behind a corporate proxy, or you have been pwned.
Assuming its the proxy, you need to figure out what your https proxy is and add it to the pip command like so:

pip install requests --proxy=https://my_proxy.com:xxx

其中xxx是您的代理服务器的端口

where xxx is the port of your proxy