首先可以通过清华源下载
在Linux系统中,wget是一个常用的命令行工具,用于从网络上下载文件。
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py39_23.5.2-0-Linux-x86_64.sh
讯享网
可能会报如下错误
ERROR: cannot verify mirrors.tuna.tsinghua.edu.cn’s certificate, issued by ‘/C=US/O=Let’s Encrypt/CN=R3’:
Issued certificate has expired.
我们需要添加如下参数–no-check-certificate
讯享网wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py39_23.5.2-0-Linux-x86_64.sh --no-check-certificate
运行该脚本
bash Miniconda3-py39_23.5.2-0-Linux-x86_64.sh
一路yse和enter
安装完执行
讯享网source ~/.bashrc
到此miniconda已经安装完成,不需要再配置相关的环境变量了
换源的一些指令
可能不同的服务器网络环境不同,可以尝试不同的国内镜像,这里切换到了阿里云的源,试过清华的源,中科大的源,但都不太行,一直卡在Solving environment上
查看源
conda config --show-sources
conda换源
讯享网conda config --add channels http://mirrors.aliyun.com/anaconda/pkgs/main conda config --add channels http://mirrors.aliyun.com/anaconda/pkgs/r conda config --add channels http://mirrors.aliyun.com/anaconda/pkgs/msys2 conda config --set show_channel_urls yes
通过运行 conda config --set show_channel_urls yes,您启用了显示软件包通道 URL 的功能。这意味着当您运行 conda install 或其他 conda 命令时,您将看到软件包来自哪个通道的信息。
conda初始化源
这将会删除所有的通道
conda config --remove-key channels
pip换源
查看源
讯享网pip config list
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/11891.html