conda配置代理 和pip代理

最近清华源也经常不稳,还是使用代理,配合官网源最好用。

conda源

只需要在.condarc这个文件配置就行了:

vim ~/.condarc

这个文件中可以看到镜像源信息(如果配置了的话),在下面加上proxy就可以设置代理了:

bash 复制代码
channels:
  - defaults
show_channel_urls: true
 
proxy_servers:
  http: http://0.0.0.0:7890
  https: http://0.0.0.0:7890
ssl_verify: false

注意把http:和https:后面的链接换成你的代理链接和端口号。

pip源:

vi ~/.config/pip/pip.conf

bash 复制代码
[global]
proxy     = http://0.0.0.0:7890
相关推荐
Echo_NGC22371 天前
【论文解读】Attention Is All You Need —— AI 时代的“开山之作“,经典中的经典(transformer小白导读)
人工智能·python·深度学习·神经网络·机器学习·conda·transformer
何中应1 天前
Conda安装&使用
python·conda·python3.11
林浩杨1 天前
Pip对当前环境下的所有包进行更新
pip
qq_229058012 天前
conda中安装 rdkit版本的postgresql然后在Win11中使用虚拟环境里的rdkit
数据库·postgresql·conda
咯哦哦哦哦3 天前
Foundationpose环境配置【非conda--纯UV】(linux22.04+python3.10)
python·pip·uv
nashane4 天前
HarmonyOS 6学习:画中画(PiP)状态同步与场景化实战指南
学习·pip·harmonyos·harmonyos 5
Mr.朱鹏4 天前
【Python 进阶 | 第四篇】Psycopg3 + Flask 实现 PostgreSQL CRUD 全流程:从连接池到RESTful接口
python·postgresql·flask·virtualenv·fastapi·pip·tornado
独隅5 天前
Anaconda被误删后抢救手册
conda
矢志航天的阿洪5 天前
手动安装Gurobi并配置gurobipy到Python环境(Windows/Conda)
windows·python·conda
万粉变现经纪人6 天前
如何解决 pip install bitsandbytes 报错 仅支持 Linux+glibc(macOS/Windows 失败)问题
linux·运维·windows·python·scrapy·macos·pip