当前位置:网站首页>conda常用命令
conda常用命令
2022-07-27 17:43:00 【laluneX】
一、新环境
1. 创建环境
conda create -n yourEnv python=3.9
–n:也可以写为-name,yourEnv是新创建的虚拟环境的名字,创建完,可以在anaconda/envs下找到新环境
python=3.9:是python的版本号,可以指定
若想要在创建环境同时安装python的一些包:
conda create -n yourEnv python=3.6 numpy pandas
若想在别人虚拟环境的基础上创建自己的环境:
conda create -n <yourEnv> --clone <baseEnv>
2. 激活与退出
activate yourEnv
deactivate yourEnv
3. 查看环境
输出所有环境,其中带有*号为当前环境
conda info --envs # 同conda env list一样
4. 包相关操作
查看当前环境下安装的包和版本
conda list
安装或删除numpy和sklearn包
conda install numpy scikit-learn
conda uninstall numpy scikit-learn
5. 删除环境
conda env remove -n yourEnv
6. 源操作
查看源
conda config --show-sources
添加安装源
- 注意安装时PyTorch,官网给的安装命令需要去掉最后的-c pytorch,才能使用清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
删除安装源
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
二、其他
1. 引用
- https://blog.csdn.net/SARACH_WONG/article/details/89328307
- https://blog.csdn.net/David_jiahuan/article/details/104544957
本文只用于个人学习与记录,侵权立删
边栏推荐
- C171: attendance system
- How to quickly improve the three minute response rate of Tiktok store? What will affect the reply rate of Tiktok store?
- Codeworks 5 questions per day (average 1500) - day 24
- 如何快速提升抖音小店三分钟回复率?哪些情况会影响抖音小店回复率呢?
- No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
- LED高精度体重秤方案规格书
- PMP每日一练 | 考试不迷路-7.27(包含敏捷+多选)
- 传英特尔将停掉台积电16nm代工的Nervana芯片
- 华为手机出货超苹果成全球第二,但面临大量库存需要清理
- Program design Comprehensive Experiment III
猜你喜欢

1.2、基于增量式生成遮挡与对抗抑制的行人再识别(代码理解与实验进度+报告)

No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities

Use cpolar to build a business website (5)

Static test. 2021.01 .13

技术分享 | 接口自动化测试中,如何做断言验证?

第3章 基本操作

使用cpolar建立一个商业网站(5)
![[openbmc series] 4. Start the process and use qume to simulate ast2600 EVB](/img/ab/026111b25836758ec7ffec8d60f49d.png)
[openbmc series] 4. Start the process and use qume to simulate ast2600 EVB

Cesium常用坐标系详细介绍

Talk about how redis handles requests
随机推荐
PMP practice once a day | don't get lost in the exam -7.27 (including agility + multiple choices)
剑指 Offer 25. 合并两个排序的链表
ms721负载测试
中国业务型CDP白皮书 | 爱分析报告
NAT 11.16
Overview of deep active learning 2020
想转行软件测试,先过这三关,包含一份3000字超全测试学习指南
New library online | cnopendata detailed address data of all patents in China
System information function of MySQL function summary
‘vite‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件
Software configuration | tigervnc download, installation and configuration
内置函数时间日期函数
TS2532: Object is possibly ‘undefined‘
uva1377
2022爱分析·智慧社区厂商全景报告 厂商征集
邬贺铨:因地制宜 数字化技术赋能“双碳”实践
ACL11.12
How to encrypt the data in MySQL database? Mysql8.0 comes with new features
11.2DHCP
汇顶科技:收购恩智浦VAS业务已完成交割