【问题标题】:how to press enter on Google Colaboratory如何在 Google Colaboratory 上按 Enter
【发布时间】:2019-01-28 15:15:35
【问题描述】:

我尝试在 Google Colaboratory 上安装 Anaconda,但如何按 Enter 键? 这个问题类似Answer “yes” to terminal on Google Colaboratory

Welcome to Anaconda3 5.1.0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue

我能做什么?

【问题讨论】:

    标签: anaconda google-colaboratory


    【解决方案1】:

    您可以使用-b 选项以批处理模式运行安装程序。

    !./miniconda.sh -b
    

    假定您同意所有条款和条件。但请记住,这不会将安装路径添加到 PATH 变量,如果您直接想使用 conda 命令,您将手动设置该变量:

    !export PATH=$PATH:<dir_of_conda_installation>/bin
    

    【讨论】:

    • 它有效,但我认为应该在 Colab 中使用! bash Anaconda3-5.1.0-Linux-x86_64.sh -b 以及如何手动设置path?我试过export 但它不起作用。
    • bash 和使用 ./ 是一回事。并更新了我关于如何添加路径的答案。
    • 我知道,但是./ 需要root。
    • 不确定您所说的需要 root 是什么意思?
    • 我的意思是/bin/sh: 1: ./Anaconda3-5.1.0-Linux-x86_64.sh: Permission denied
    猜你喜欢
    • 2018-06-25
    • 1970-01-01
    • 2018-06-06
    • 1970-01-01
    • 1970-01-01
    • 2018-08-25
    • 2018-07-21
    • 2019-09-17
    • 2023-01-12
    相关资源
    最近更新 更多