当前位置:网站首页>软件配置 | Anaconda下载、安装及环境配置和卸载
软件配置 | Anaconda下载、安装及环境配置和卸载
2022-07-23 13:46:00 【MissMango0820】
本文总结 Anaconda 的安装下载、安装及环境配置和卸载。
Updated: 2022 / 7 / 18
下载
推荐前去官网 1 按需下载所对应的版本。
如果当前使用网络无法连接外网,则可使用镜像网站,再在服务器端 wget 网址即可 2。
安装及环境配置
下载好源文件后,进入下载文件所在目录中,
Linux
比如,此时看到下载文件所在目录中的 Anaconda3-5.3.1-Linux-x86_64.sh, 打开终端,输入
bash Anaconda3-5.3.1-Linux-x86_64.sh
然后接下来会要有几次操作,按照终端中出现的提示操作即可,如下图所示:
- 按
Enter键来继续安装;
- 在按下
enter键之后,安装又会暂时停止,并且出现一个more的字样,要求你阅读协议,接下来继续按需多个空格或者Q来跃过协议文字内容; - 输入
yes来接受协议;
- 输入
yes来配置系统环境以初始化Anaconda;
- 是否安装
vscode?按需输入yes或者no
安装完成后,需要退出终端后,再次进入才能输入conda命令。
或者不想退出的话,在终端中输入source .bash_profile刷新一下环境变量,再输入conda命令。
潜在问题及解决方法
conda: command not found
问题描述
在终端中输入 conda,却显示 conda: command not found3。
解决方法
在终端中输入
bash Anaconda3-5.3.1-Linux-x86_64.sh -u
以重新安装过程。
在安装过程中,需要注意,在第 4 步需输入 yes,如下图所示:
选择 yes 并安装完成后,确认 ~/.bashrc 中已经添加了相应的环境变量,如下图所示:
在终端中输入 source ~/.bashrc,再运行 conda 即可。
卸载
卸载步骤参考这里 4:
- 删除整个anaconda目录
由于Anaconda的安装文件都包含在一个目录中,所以直接将该目录删除即可。到包含整个anaconda目录的文件夹下,删除整个目录:
rm -rf Anaconda3安装路径
- 清理
.bashrc中的Anaconda路径
打开终端并输入:
sudo gedit ~/.bashrc
在 .bashrc 文件末尾,删除或注释 Anaconda3 写入的东西
# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/home/vision/Softwares/Anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/home/vision/Softwares/Anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/vision/Softwares/Anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/home/vision/Softwares/Anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
保存并关闭文件
- 使其立即生效,在终端执行:
source ~/.bashrc
- 关闭终端,然后再重启一个新的终端,这一步很重要,不然在原终端上还是绑定有
Anaconda3。
参考链接
边栏推荐
- 浏览器四大内核
- Advanced authentication of uni app [Day12]
- php文件锁抽奖防止并发
- C语言基础篇 —— 2-6 指针、数组与sizeof运算符
- Taishan Office Technology Lecture: layout drawing analysis of paragraph borders
- Bag of Tricks for Image Classification with Convolutional Neural Networks(卷积神经网络在图像分类中的技巧)
- Cuibaoqiu, vice president of Xiaomi group: open source is the best platform and model for human technological progress
- Heartless sword English Chinese bilingual poem 006. to my wife
- 分类模型——逻辑回归、Fisher线性判别(SPSS)
- 【Web漏洞探索】SQL注入漏洞
猜你喜欢

Tan Zhangxi, director of risc-v Foundation: risc-v has gradually expanded from the edge to the center

pwn入门(3)堆

Heartless sword English Chinese bilingual poem 006. to my wife

JMeter之函数二次开发/插件开发(细版)

ROS2自学笔记:Rviz可视化工具

AutoCAD基本操作

层次分析法(MATLAB)

智慧物联网源码 带组态物联网源码 工业物联网源码:支持传感器解析服务,数据实时采集和远程控制

小米集团副总裁崔宝秋:开源是人类技术进步的最佳平台和模式

Wechat applet wx.hideloading() will close the toast prompt box
随机推荐
How to buy financial products with a return of more than 6%?
Ie box model and standard box model
Fundamentals of C language -- 2-6 pointers, arrays and sizeof operators
Tips and tricks for neural networks deep learning and training skills summary (updated from time to time)
银河证券网上开户,手机上开户安不安全
学习笔记7--交通环境行为预测
uni-app进阶之认证【day12】
Object.defineproperty method, data agent
js如果小数是0就减去,不是就保留
Bag of tricks for image classification "with convolutional neural networks"
What are the principal guaranteed financial products with an annual interest rate of about 6%?
Object.defineProperty方法、数据代理
leetcode-67.二进制求和
Is PMP a great help for practical work?
How does MySQL query data that is not in the database?
leetcode-168.Excel表列名称
Visualization of gross domestic product (GDP) data
Numpy 数据分析基础知识第一阶段(NumPy基础)
一道反序列化的CTF题分享
Convolutional neural network model -- googlenet network structure and code implementation