本文主要是介绍【FireSim/Chipyard】解决FireSim Repo Setup步骤中Conda的firesim环境下载失败的问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
【FireSim/Chipyard】解决FireSim Repo Setup步骤中Conda的firesim环境下载失败的问题
问题描述
按照U250官方文档下载Conda环境的时候,即语句./scripts/machine-launch-script.sh --prefix REPLACE_ME_USER_CONDA_LOCATION
的时候会遇到以下报错:
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
PackagesNotFoundError: The following packages are not available from current channels:- conda-lock=1.4*
Current channels:- To search for alternate channels that may provide the conda package you're looking for, navigate tohttps://anaconda.org and use the search bar at the top of the page.Note: 'use_only_tar_bz2' is enabled. This might be omitting some
packages from the index. Set this option to 'false' and retry.
然后另开一个窗口执行conda env list
命令发现只有base环境,没有firesim。
解决方法
我先执行了conda install requests
命令,又换了源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/main
最后参考PackagesNotFoundError的方法二,进入https://anaconda.org链接,找到conda-lock=1.4.0的条目,点进去使用它提供的指令单独下载conda install ctools::conda-lock
,这一步实践会有一点点长,耐心等待一下。
执行完上述命令再执行文档中的./scripts/machine-launch-script.sh --prefix REPLACE_ME_USER_CONDA_LOCATION
命令,会发现环境安装成功。
结果
envs文件下出现firesim环境,执行conda env list
会看到base和firesim两个环境。
这篇关于【FireSim/Chipyard】解决FireSim Repo Setup步骤中Conda的firesim环境下载失败的问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!