当前位置:网站首页>anaconda3安装
anaconda3安装
2022-04-23 06:19:00 【qq1033930618】
anaconda3安装
一、anaconda3下载
清华大学开源软件镜像站
下载
Anaconda3-20xx.xx-Linux-x86_64.sh
二、anaconda3安装
终端窗口
bash Anaconda3-20xx.xx-Linux-x86_64.sh
选择安装位置
初始化提示 输入yes
安装完毕后 重启终端 终端最前面出现(base)
python
默认为anaconda3版本
三、anaconda3图形界面
显示图形界面
anaconda-navigator
四、pycharm建立虚拟环境
在pycharm中虚拟环境
保存位置
/home/用户名/anaconda3/envs
导入requirements
在终端位置文件夹放入
requirements.txt
五、anaconda3建立虚拟环境
查看所有环境
conda env list
创建环境
conda create -n 环境名称 python=3.7
激活与退出环境
conda activate 环境名称
conda deactivate
复制一个环境
sudo conda create -n 新环境 --clone 老环境
查看当前环境下所有包版本
conda list
指定环境下安装包
conda install -n 环境名称 包名称
指定环境下更新安装包
conda update -n 环境名称 包名称
删除
conda remove -n 环境名称 --all
requirements.txt的使用
根据requirements.txt安装包
激活环境
在包含requirements.txt目录下
pip install -r requirements.txt
生成requirements.txt
pip freeze>requirements.txt
六、anaconda3重置root环境
conda list --revisions
conda install --revision REV_NUM
conda install --revision 0
查看历史,按需选择 REV_NUM 数值。一般情况下,0表示是第一次安装,包括root环境和conda命令,所以一般为1或之后,重置则0。
七、在conda前加sudo
提权之后前不加sudo也可以
针对 sudo conda命令不能执行情况
sudo chown -R 用户名 anaconda3
或者
sudo chmod -R 777 anaconda3
vim ~/.bashrc
添加如下内容
alias sudo="sudo env PATH=$PATH"
重启终端
八、conda没有但是pip有的安装包
激活环境
conda activate 环境名称
pip install 安装包
版权声明
本文为[qq1033930618]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_51326691/article/details/120388802
边栏推荐
- HQL语句的调优
- 北峰油气田自组网无线通信对讲系统解决方案
- Take you to travel in space, and American photography technology provides comprehensive technical support for aerospace creative applet
- 《Attention in Natural Language Processing》翻译
- Solution of emergency communication system for major security incidents
- go语言数组操作
- 不需要破解markdown编辑工具Typora
- Swin transformer to onnx
- PyTorch 11. Regularization
- 机器视觉系列(02)---TensorFlow2.3 + win10 + GPU安装
猜你喜欢

ES6之箭头函数细谈

Solution of emergency communication system for major security incidents

自定义classloader并实现热部署-使用loadClass

Meishe helps Baidu "Duka editing" to make knowledge creation easier

枫桥学院开元名庭酒店DMR系统解决方案

Patrol inspection intercom communication system in power industry

Discussion on the outline of short video technology

北峰油气田自组网无线通信对讲系统解决方案

Tensorflow安装后ImportError: DLL load failed: 找不到指定的模块,且国内安装缓慢

可视化之路(十二)Collection类详解
随机推荐
可视化之路(十一)matplotlib颜色详解
通过sparksql读取presto中的数据存到clickhouse
广西电网|应急空天一体化通信系统方案
Unable to determine the device handle for GPU 0000:02:00.0: GPU is lost.
带您遨游太空,美摄科技为航天创意小程序提供全面技术支持
How does the public and Private Integrated walkie talkie realize cooperative work under multi-mode communication?
el-table 横向滚动条固定在可视窗口底部
null和undefined的区别
Proteus 8.10安装问题(亲测稳定不闪退!)
Intelligent communication solution of Hainan Phoenix Airport
获取字符格式的当前时间
可视化之路(九)Arrow类详解
美摄科技受邀LVSon2020大会 分享《AI合成虚拟人物的技术框架与挑战》
带低压报警的51单片机太阳能充电宝设计与制作(完整代码资料)
安装tui-editor失败,快速解决方案
quill-editor图片缩放、在一个页面使用多个富文本框、quill-editor上传图片地址为服务器地址
什么是闭包?
华为云MVP邮件
Discussion on the outline of short video technology
PyTorch 12. Hook usage