conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/怎么用
时间: 2023-12-16 19:04:40 浏览: 186
您可以在终端或命令提示符中输入该命令,然后按回车键执行。这条命令将添加清华大学的镜像地址到Anaconda的免费软件包频道中。这样,当您使用Anaconda时,它将从清华大学的镜像站点获取软件包,以加快下载速度并减少网络延迟。请注意,执行此命令需要您已经安装了Anaconda,并且具有管理员或root权限。
相关问题
(base) C:\Users\Administrator>conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ Warning: 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/' already in 'channels' list, moving to the top
这个命令的输出结果说明你已经将清华大学的 Anaconda 镜像源添加到了你的 Anaconda 配置文件中,并且将其设为了首选镜像源。
这个操作可以加速你在使用 Anaconda 安装、更新、卸载软件包时的下载速度。你可以继续使用以下命令来添加其他镜像源,以便在访问清华大学的镜像源时出现问题时可以使用其他可用的镜像源:
```
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
```
这些镜像源分别对应 Anaconda 的免费软件包、R 语言包和 conda-forge 社区维护的软件包。在添加完这些镜像源之后,你可以使用 `conda update` 或 `conda install` 命令来更新或安装软件包,Anaconda 会自动从你所添加的镜像源中选择最快的一个进行下载。
Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): ...working... done Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve. PackagesNotFoundError: The following packages are not available from current channels: - crefi Current channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/linux-64 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/noarch - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/linux-64 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/linux-64 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/noarch To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org and use the search bar at the top of the page.
这个错误提示表明在当前的镜像源中找不到名为 "crefi" 的包。请按照以下步骤进行排查:
1. 检查包的名称是否正确,确保没有拼写错误。
2. 检查网络连接是否正常,可以尝试使用其他网络或者更换镜像源。
3. 在终端中运行以下命令更新 conda:
```
conda update conda
```
然后再尝试安装包。
4. 如果仍然无法找到包,可以尝试在 https://anaconda.org 上搜索该包,看看是否有其他可用的镜像源提供该包。
希望这些解决方案能帮助到您!如果还有其他问题,请随时提问。
阅读全文
相关推荐

















