In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>> ENTER
# 按照提示输入yes Do you accept the license terms? [yes|no] [no] >>> Please answer 'yes' or 'no':' >>> yes
# 按照提示输入ENTER(回车) # Anaconda3 will now be installed into this location: /root/anaconda3
- Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below
[/root/anaconda3] >>> ENTER
# conda初始化 默认no 建议输入yes # 如果选择了no 则需要自行配置环境变量(百度关键词 anaconda 环境变量) installation finished. Do you wish the installer to initialize Anaconda3 by running conda init? [yes|no] [no] >>> yes
# 下面是一些提示 简单翻译了一下 # 要让conda生效 需要关闭再重新打开当前shell(重新连接ssh) # 如果不需要启动时激活conda基础环境 输入 conda config --set auto_activate_base false ==> For changes to take effect, close and re-open your current shell. <==
If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false:
ipython # 进入python控制台 Python 3.7.13 (default, Mar 29 2022, 02:18:16) Type 'copyright', 'credits' or 'license'for more information IPython 7.31.1 -- An enhanced Interactive Python. Type '?'forhelp.
In [1]: from notebook.auth import passwd
In [2]: passwd() Enter password: Verify password: Out[2]: 'argon2:$argon2id$v=19$m=10240,t=10,p=xxxxxxxxx'# 复制''之间的内容 后面需要
In [2]: exit
jupyter notebook --generate-config # 这里会提示你生成的文件在哪里 vim ~/.jupyter/jupyter_notebook_config.py # 这里编辑上一步提示的文件