内网anaconda如何使用代理,避免网络连接失败?

问题征兆

在内网环境使用anaconda创建新环境:

conda create --name py39 python=3.9

由于网络原因,遇到如下报错:

Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffffa9760650>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /anaconda/pkgs/free/linux-aarch64/repodata.json.zst

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-aarch64/repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'http//mirrors.tuna.tsinghu
为什么在pycharm下载安装插件会失败?:PS D:\NEW desktop\app_house> pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pyhive django-adminlte-ui==1.7.2 beautifulsoup4==4.12.2 fake_useragent==1.4.0 certifi==2020.12.5 chardet==4.0.0 django==3.1.7 djangorestframework==3.12 et-xmlfile==1.0.1 idna==2.10 jdcal==1.4.1 openpyxl==3.0.6 pytz==2021.1 requests==2.25.1 django-simpleui==2023.3.1 urllib3==1.26.3 xlwt lxml numpy beautifulsoup4 selenium==3.12.0 pandas pyecharts snownlp geopy wordcloud scikit-learn jieba faker django-import-export==2.7.1 WARNING: Ignoring invalid distribution -ip (d:\anaconda\lib\site-packages) Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting pyhive ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/f6/ec/5c658b3a4d99a6d91450 30cc8e003c3f7efc668d866e88544812ab0af310/PyHive-0.7.0.tar.gz (from https://pypi.tuna.tsinghua.edu.cn/simple/pyhive/) [notice] A new release of pip is available: 24.3.1 -> 25.0.1 [notice] To update, run: python.exe -m pip install --upgrade pip ERROR: Could not install requirement pyhive from https://pypi.tuna.tsinghua.edu.cn/packages/f6/ec/5c658b3a4 d99a6d9145030cc8e003c3f7efc668d866e88544812ab0af310/PyHive-0.7.0.tar.gz because of HTTP error 403 Client Er ror: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/f6/ec/5c658b3a4d99a6d9145030cc8e003c3f7e fc668d866e88544812ab0af310/PyHive-0.7.0.tar.gz for URL https://pypi.tuna.tsinghua.edu.cn/packages/f6/ec/5c6 58b3a4d99a6d9145030cc8e003c3f7efc668d866e88544812ab0af310/PyHive-0.7.0.tar.gz (from https://pypi.tuna.tsinghua.edu.cn/simple/pyhive/) PS D:\NEW desktop\app_house>
03-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值