如何设置anaconda代理

本文介绍如何修改Anaconda的.condarc文件,包括设置渠道、启用代理服务器和禁用SSL验证,以及使用清华镜像加速下载。同时,提供通过pip安装包时使用代理的方法。
造相-Z-Image-Turbo 亚洲美女LoRA

基于 **Z-Image-Turbo** 的图片生成 Web 服务,新增对 LoRA laonansheng/Asian-beauty-Z-Image-Turbo-Tongyi-MAI-v1.0 的按需加载支持与严格的后端内容策略

C:\Users\<username>\
找到.condarc文件

修改内容为:

channels:
- defaults
 
# Show channel URLs when displaying what is going to be downloaded and
# in 'conda list'. The default is False.
show_channel_urls: True
allow_other_channels: True
 
proxy_servers:
    http: http://proxy.yourorg.org:port
    https: http://proxy.yourorg.org:port
 
 
ssl_verify: False
加了清华镜像后我的文件内容为:

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  - defaults
show_channel_urls: True
allow_other_channels: True
 
proxy_servers:
    http: http://proxy.tencent.com:8080
    https: http://proxy.tencent.com:8080
 
ssl_verify: False
另外,如果是pip的话,只需要在安装包的时候用如下格式(比如tensorflow):

        pip --proxy=http://username:password@proxyURL:portNumber install tensorflow
 

您可能感兴趣的与本文相关的镜像

造相-Z-Image-Turbo 亚洲美女LoRA

造相-Z-Image-Turbo 亚洲美女LoRA

图片生成
Conda
Cuda

基于 **Z-Image-Turbo** 的图片生成 Web 服务,新增对 LoRA laonansheng/Asian-beauty-Z-Image-Turbo-Tongyi-MAI-v1.0 的按需加载支持与严格的后端内容策略

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值