我打开了一个免费实例进行一些练习。
我尝试终止它,正如我多次成功完成的那样。
Terminate instance但是从下拉列表中选择后;
我收到以下错误:
Failed to terminate the instance <instance id>
The instance '<instance id>' may not be terminated. Modify its 'disableApiTermination' instance attribute and try again.
Run Code Online (Sandbox Code Playgroud)
在哪里可以找到该disableApiTermination属性?
我已anaconda3根据文档和此 stackoverflow 条目卸载:
安装清洁器
$ conda install anaconda-clean
激活“基础”虚拟环境
$ source ~/opt/anaconda3/bin/activate
运行清洁工
(base) $ anaconda-clean --yes
停用“基础”虚拟环境
(base) $ conda deactivate
删除文件
$ rm -rf ~/opt/anaconda3
$ rm -rf ~/opt/.anaconda_backup
从环境文件中删除 conda 添加的所有行
打开我的.bash_profile文件(对于其他人可能是.profile和/或.bashrc)
就我而言,我删除了这些行:
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/me/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else …Run Code Online (Sandbox Code Playgroud)