C9 IDE-找不到Conda命令

时间:2018-09-09 19:48:58

标签: python ubuntu conda c9.io

我正在尝试在c9-ide上安装conda。我的c9终端正在Ubuntu 14.04.5 LTS上运行。

我做了以下事情:

> wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
> sudo bash Miniconda3-latest-Linux-x86_64.sh

我基本上单击了Enter,然后在整个安装过程中单击了。

我的安装位置是:/home/ubuntu/miniconda3

我试图关闭并重新打开终端,但是我仍然得到:

> conda
bash: conda: command not found

有人建议我在做什么错吗?

感谢您的答复!

1 个答案:

答案 0 :(得分:1)

您必须通过将以下内容添加到.bashrc文件中来将source /path/to/miniconda3/etc/profile.d/conda.sh && conda activate base 函数添加到您的外壳程序中:

PATH

此过程在Conda 4.4的发行说明中有详细说明:https://github.com/conda/conda/blob/master/CHANGELOG.md#440-2017-12-20


对于早于4.4的conda版本,您需要在.bashrc文件中使用以下内容将conda二进制文件添加到export PATH=/path/to/miniconda3/bin:$PATH

stages:
 - build

build:
  stage: build
  image: node:10.9.0
  script:
    - npm install -g @angular/cli
    - npm install -g typescript
    - npm install
    - ng build --prod
    - docker image build -t tag/to/image .
    - docker push tag/to/image
  tags:
    - angular
  cache:
    paths:
      - node_modules/
  artifacts:
    expire_in: 1 week
    paths:
      - dist/*
  only:
    - master