【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 to
 
    https://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两个环境。

在这里插入图片描述
在这里插入图片描述

最近更新

  1. TCP协议是安全的吗?

    2024-06-16 04:06:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-16 04:06:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-16 04:06:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-16 04:06:02       18 阅读

热门阅读

  1. CSS概述

    CSS概述

    2024-06-16 04:06:02      6 阅读
  2. 本地生活元宇宙 “苹果之乡”的新鲜事

    2024-06-16 04:06:02       6 阅读
  3. 正式环境下的历史数据迁移方案,你知道几个?

    2024-06-16 04:06:02       7 阅读
  4. python写一个获取竞品信息报告

    2024-06-16 04:06:02       5 阅读
  5. golang HTTP2 https测试POST变GET问题小记

    2024-06-16 04:06:02       6 阅读
  6. Mybatis框架配置文件收录总结(详解附代码版)

    2024-06-16 04:06:02       7 阅读