conda stuck on Proceed ([y]/n)? when updating packages in ipython console

前端 未结 4 1750
一整个雨季
一整个雨季 2021-02-01 02:02

I just downloaded Anaconda 4.2.0 (with python 3.5.2) for Mac OS X. Whenever I try to update any packages etc, my ipython console presents the package dependencies and displays \

相关标签:
4条回答
  • 2021-02-01 02:42

    Add --yes at the end of the command.

    For example:

    !conda install --yes seaborn
    
    0 讨论(0)
  • 2021-02-01 02:45

    Just Append -y to any command to say yes to all the yes/no questions. Most of the packages are configured in a way to work with this. For your:

    !conda create -n graphlab-env python=2.7 anaconda -y
    
    0 讨论(0)
  • 2021-02-01 02:46

    Solution:

    !conda update --update-all --yes
    

    or shortly:

    !conda update --all -y
    
    0 讨论(0)
  • 2021-02-01 03:09

    You can launch shell commands with the ! operator in ipython, but you can't interact with them after the process has launched.

    Therefore, you could:

    1. execute your conda command outside of your ipython session (IOW, a normal shell); or
    2. pass the --yes flag. e.g.:

    !conda create -n graphlab-env python=2.7 anaconda -y

    0 讨论(0)
提交回复
热议问题