Anaconda常用操作
383 字
2 分钟
Anaconda常用操作
1、升级
conda update conda #基本升级conda update anaconda #大的升级conda update anaconda-navigator //update最新版本的anaconda-navigator2、conda环境使用基本命令
conda update -n base conda #update最新版本的condaconda create -n xxxx python=3.7 #创建python3.7的xxxx虚拟环境conda activate xxxx #开启xxxx环境conda deactivate #关闭环境conda env list #显示所有的虚拟环境conda info --envs #显示所有的虚拟环境conda create --name newname --clone oldname #克隆环境conda remove --name oldname --all #彻底删除旧环境conda install tensorflow=1.8.0 #安装特定版本的包pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyterthemes #清华源下载更快conda install nb_conda #安装后便可以在jupyter选择环境3、conda更新卸载安装包
conda list #查看已经安装的文件包conda list -n xxx #指定查看xxx虚拟环境下安装的packageconda update xxx #更新xxx文件包conda uninstall xxx #卸载xxx文件包4、conda安装本地包
#pip 安装本地包pip install ~/Downloads/a.whl#conda 安装本地包conda install --use-local ~/Downloads/a.tar.bz25、修改镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --set show_channel_urls yes`
# 然后在.condarc修改内容如下,亲测有效:
channels: - defaultsshow_channel_urls: truechannel_alias: https://mirrors.tuna.tsinghua.edu.cn/anacondadefault_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2custom_channels: conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudssl_verify: true6、conda自动开启/关闭激活
conda activate #默认激活base环境conda activate xxx #激活xxx环境conda deactivate #关闭当前环境conda config --set auto_activate_base false #关闭自动激活状态conda config --set auto_activate_base true #关闭自动激活状态支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或打赏支持!
相关文章 智能推荐
1
Python枚举类状态码应用
开发笔记 2026-06-29
2
Python使用pyinstaller打包exe
开发笔记 1、在自己的python环境下安装依赖 2、打包命令 参数解释: 1. w 全称 windowed ,表示生成 无控制台窗口 的 GUI 程序。适用于 PyQt、Tkinter 等图形界面程序,避免运行时弹出黑色控制台窗口。 2. onefile 生成 单文件可执行程序 所有依赖
3
Python中property的使用技巧
开发笔记 property属性 一种用起来像是使用实例属性一样的特殊属性,可以对应于某个方法 既要保护类的封装特性,又要让开发者可以使用 对象.属性 的方式操作方法, @property 装饰器 ,可以直接通过方法名来访问方法,不需要在方法名后添加一对 小括号。 来看下求圆的面积的例子 p
4
开源Paddleocr+人脸提取实现身份证信息识别
AI 1、安装 根据自己的环境安装对应的依赖 参考链接:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/develop/install/pip/linux pip.html 2、Pa
5
Linux安装使用Jupyter
运维部署 1、环境准备 安装好Python、pip、conda等环境 2、pip直接安装对应包 3、生成jupyter配置文件 4、进入ipython环境 5、设置jupyter配置文件 6、给文件夹授权 7、启动 设置jupyter进程始终挂载
随机文章 随机推荐