使用Anaconda管理Python环境
2024-08-26 23:22:03
修改镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
使用 conda 命令工具
1> 搭建环境
(1) 基于python3.6版本创建一个名字为python36的环境
conda create --name python36 python=3.6 (2) 激活此环境
source activate python36 (3) 退出当前环境
deactivate python36 (4) 删除该环境
conda remove -n python36 --all
PS:可同时创建多个环境,查看所有激活的环境
conda info -e
2> 包管理
# 安装包
conda install requests # 查看已安装的包
conda list # 包更新
conda update requests # 删除包
conda remove requests
安装依赖
conda install --yes --file requirements.txt
233
最新文章
- html5+css+div随时笔记
- 教你如何塑造JavaScript牛逼形象
- ajax请求成功后新开窗口window.open()被拦截解决方法
- Python基础语法
- Oracle 数据库基础学习 (三) Oracle 四个表结构
- .net IL 指令速查
- UML精粹学习 - 订单类结构图
- c语言编程之队列(链表实现)
- 判断webpart类型 How can I tell what type a web part is?
- libc++abi.dylib: terminate_handler unexpectedly threw an exception错误小结
- 生活沉思录 via 哲理小故事(四)
- 提高Java代码质量的Eclipse插件之Checkstyle的使用详解
- CF 327E(Axis Walking-状态压缩Dp-lowbit的使用)
- leetcode342合理运用位操作判断4的幂
- FORM开发中Profiles的使用
- md5两次加密
- BBS论坛(十)
- .Net语言 APP开发平台——Smobiler学习日志:HoverBackColor属性的简单介绍
- 19.3.19 使用Flask框架搭建一个简易登录服务器
- springboot入门学习-helloworld实例