python - python -m 在公司代理后面
问题描述
我在我的.bashrc
(HTTP_PROXY、HTTPS_PROXY 及其小写变体)中设置了所有代理环境变量,并且所有必需的主机都已作为例外添加到代理服务器,包括github.com
,但是当我发出时,python -m spacy download en
我得到:
Collecting en_core_web_sm==2.1.0 from https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz#egg=en_core_web_sm==2.1.0
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',))': /84940268/85ec3200-48aa-11e9-9878-337412e36828?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190513%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190513T164037Z&X-Amz-Expires=300&X-Amz-Signature=27c4af0fcb6043dba9efa4f7f4be7aced7af7fba51208a31e9737b59403e3e99&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Den_core_web_sm-2.1.0.tar.gz&response-content-type=application%2Foctet-stream
等等
注意:git clone
工作正常pip install
,等等。
不知道为什么通过安装python -m
会有问题。在我所做的任何搜索中,都没有要使用的环境变量配置信息python -m
,所以不确定交易是什么?
解决方案
推荐阅读
- reactjs - 无法从“node_modules/react-navigation-stack/lib/module/index.js”解析“./vendor/TransitionConfigs/CardStyleInterpolators”
- zen-cart - 在zenkart中集成razorpay支付模块
- excel - 将变量设置为值会产生运行时错误 1004:应用程序定义或对象定义错误
- java - java中的时间戳验证器
- hadoop - MapReduce 主进程如何决定将哪个任务分配给单个工作进程?
- lua - 我的代码在 Minecraft 中的计算机控制的种子分析器上给出了“尝试调用零值”
- node.js - AWS Lambda 数据库连接问题 [更新问题]
- android - mvvm + 实时数据,由于以前的实时数据值重新加载相同的片段
- python - Docker:如何调试本地主机“内部服务器错误”?
- reactjs - why onChange event does not have event.keyCode property in react?