0


在 Git Bash 中使用 Anaconda Conda

在 Git Bash 中使用 Anaconda Conda

安装了

conda

git bash

之后,如何在

git bash

中使用

conda

环境呢?

解决方案

  1. 打开Anaconda的安装地址,例如C://ProgramData/Anaconda3,进入etc/profile.d文件夹,我们会看到conda.sh文件
  2. 右键,选择Git Bash Here
  3. 输入echo ". ${PWD}/conda.sh" >> ~/.bashrc 确保路径中没有空格,如果有空格的话,使用echo ". '${PWD}'/conda.sh" >> ~/.bashrc
  4. 关闭窗口,重新打开Git Bash
  5. 识别成功!

在这里插入图片描述

Reference

  1. el_cocodrilo. Setting Up Conda in Git Bash. Accessed at Spet 20, 2022. Retrieved from https://discuss.codecademy.com/t/setting-up-conda-in-git-bash/534473
标签: git bash conda

本文转载自: https://blog.csdn.net/xovee/article/details/126949439
版权归原作者 Xovee 所有, 如有侵权,请联系我们删除。

“在 Git Bash 中使用 Anaconda Conda”的评论:

还没有评论