anaconda
项目简介
Anaconda 是一个用于科学计算的 Python 发行版,支持 Linux, Mac, Windows, 包含了众多流行的科学计算、数据分析的 Python 包。
Anaconda 安装包可以到以下链接下载。
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
{{endpoint}}/archive/
使用方法
镜像站提供了 Anaconda 仓库与第三方源(conda-forge、msys2、pytorch 等,各镜像站镜像的第三方源并不相同,可以参考下方「第三方镜像源」一节)的镜像,各系统都可以通过修改用户目录下的 .condarc 文件来使用镜像站。
不同系统下的 .condarc 目录如下:
- Linux: ${HOME}/.condarc
- macOS: ${HOME}/.condarc
- Windows: C:\Users\<YourUserName>\.condarc
注:
* Windows 用户无法直接创建名为 .condarc 的文件,可先执行 conda config --set show_channel_urls yes 生成该文件之后再修改。
* 由于更新过快难以同步,TUNA 等镜像站不同步 pytorch-nightly , pytorch-nightly-cpu , ignite-nightly 这三个包。
* 如果您正在从某一镜像源切换到另一镜像源,请检查镜像源是否同步了您所需要的 repo,以及该 repo 是否支持您使用的平台 (e.g. linux-64)。
* 为了保证以下配置在所有镜像站可用,配置中只加入了少量必须的第三方源,您可以在下方的列表中自行寻找并添加其他第三方源。
channels: - defaults show_channel_urls: true default_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 custom_channels: conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
channels: - defaults show_channel_urls: true default_channels: - {{endpoint}}/pkgs/main - {{endpoint}}/pkgs/r - {{endpoint}}/pkgs/msys2 custom_channels: conda-forge: {{endpoint}}/cloud pytorch: {{endpoint}}/cloud
即可添加 Anaconda Python 免费仓库。
使用下列命令清除索引缓存,并安装常用包测试一下。
conda clean -i conda create -n myenv numpy
conda clean -i conda create -n myenv numpy
第三方源列表
您可以遵循上述配置文件中的格式添加第三方源(推荐),或者通过以下命令添加第三方源:
第三方源
conda config --set custom_channels.auto https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/
conda config --set custom_channels.{{channel}} {{endpoint}}/cloud/
Miniconda
Miniconda 是一个 Anaconda 的轻量级替代,默认只包含了 python 和 conda,但是可以通过 pip 和 conda 来安装所需要的包。
Miniconda 安装包可以到以下链接下载。
https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
{{endpoint}}/miniconda/
网址:anaconda https://klqsh.com/news/view/218967
相关内容
安装find命令 – 根据路径和条件搜索指定文件 – Linux命令大全(手册)
Woodland Park Zoo welcomes sloth for first time in 5 years
NLP项目实战01
23套震撼电影预告片及环境气氛配乐(1363多首) Audiomachine