当前位置:网站首页>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
边栏推荐
- jvm知识点汇总-持续更新
- 《Multi-modal Visual Tracking:Review and Experimental Comparison》翻译
- 使用proteus仿真STM32超声波SRF04测距!Code+Proteus
- 如何将进程绑定到指定的CPU上
- 自定义classloader并实现热部署-使用loadClass
- presto日期函数的使用
- Source Insight 4.0常见问题
- Solution of wireless intercom system in Commercial Plaza
- Emergency medical communication solution | mesh wireless ad hoc network system
- Meishe technology launches professional video editing solution for desktop -- Meiying PC version
猜你喜欢

Emergency air space integrated communication system scheme of Guangxi Power Grid

利用mysql-binlog恢复数据

ES6之箭头函数细谈

江宁医院DMR系统解决方案

Gather, unsqueeze and other operators when PTH is converted to onnx

可视化常见问题解决方案(七)画图刻度设置解决方案

可视化常见绘图(一)堆叠图

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

How to improve the service efficiency of the hotel without blind spots and long endurance | public and Private Integrated walkie talkie?

后台管理系统框架,总有你想要的
随机推荐
quill-editor图片缩放、在一个页面使用多个富文本框、quill-editor上传图片地址为服务器地址
pytorch:关于GradReverseLayer实现的一个坑
通过sparksql读取presto中的数据存到clickhouse
Emergency medical communication solution | mesh wireless ad hoc network system
商业广场无线对讲系统解决方案
PyTorch 17. GPU concurrency
Flexible blind patch of ad hoc network | Beifeng oil and gas field survey solution
记录一些npm 有关的问题(杂乱记录)
Error in multi machine and multi card training
Beifeng communication helps Zhanjiang fire brigade build PDT wireless communication system
记录一下使用v-print中遇到的问题
Discussion on the outline of short video technology
广西电网|应急空天一体化通信系统方案
x86架构初探之8086
F. The wonderful use of pad
PyTorch 10. Learning rate
PyTorch 12. Hook usage
enforce fail at inline_ container. cc:222
go iris框架实现多服务Demo:通过(监听8083端口的)服务1中的接口启动(监听8084端口的)服务2
Object.create()原理,Object.create()规范,手写Object.create(),Object.create()用法