2aebd865-e80c-4f82-ae96-c931991dedconda install m2-base
Anaconda 下载,源配置,卸载、问题 Jupyter Notebook配置问题 pip源问题 powershell [[Notion/技术支持/Anconda教程/配置代理]]
conda update --strict-channel-priority --all
| 指令 | 作用 | 备注1 | 备注2 |
|---|---|---|---|
| conda info | 查看.condarc文件位置 | ||
| conda config --get channels | 查看channel优先级 | ||
| conda config --remove channels (源) | 删除源 | ||
| conda clean -p | 清理无用安装包 | ||
| conda list | 查看安装包 | -n xxx 指定查看xxx虚拟环境下安装的package | |
| conda config --add channels (源) | 配置清华源,注意URL地址需要检查是否真确并且注意选择系统 | https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/ | https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64 |
| conda config --set show_channel_urls yes | 安装时显示安装包来源 | ||
| conda config --show channels | 只显示channels的信息 | ||
| conda config --show | 显示出所有conda的config信息 | ||
| conda config --set always_yes false | #安装确认中,不默认yes,自己决定 | ||
| conda -V/--version | 查看conda版本 | ||
| pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python | 指定网址安装包 | ||
| conda uninstall xxx | 卸载安装包 | ||
| conda remove package_name | 删除包 | ||
| conda update package_name | 更新包 | ||
| conda upgrade --all | 升级安装包 | ||
| conda update --all | 更新环境中的所有包 | ||
| conda clean -参数 | 点击查看相关参数 | ||
| conda deactivate | 关闭环境 | ||
| conda env list | 显示所有虚拟环境 | ||
| conda info -e/conda info --envs | 显示所有虚拟环境 | ||
| conda remove -n yourname --all | 删除环境 | ||
| conda create -n newpy36 --clone py36 | 复制环境 | ||
| conda create --name yourname python=3.6 | 新建虚拟环境 | ||
| conda update -n base conda | update最新版本的conda | conda update conda | |
| conda remove --name env_name package_name | 删除env_name中的某个包 | ||
| conda install -c conda-forge ta-lib | 指定conda-forge渠道下载 | ||
conda env export --name propainter --file propainter_environment.yml 导出环境 conda env create --name propainter --file propainter_environment.yml 按照导出的还原环境 conda list --export > base_environment.yml 导出环境 conda env update --name base --file base_environment.yml --prune 按照导出的还原环境
[!note]+ # 实例:使用conda快速安装两个不同版本的python 通过如下命令查看当前已经装好的python环境
conda info --e1、通过python -V 查看当前所处的版本 ![[Notion/技术支持/Anconda教程/attachments/Untitled 4.png]] 创建一个名为python27的环境,指定Python版本是2.7(不用管是2.7.x,conda会为我们自动寻找2.7.x中的最新版本
conda create -n python27 python=2.7注意名字和版本号根据自己需求修改 再通过
**conda info -e **命令,就会看到前面图中的两条记录了,表明现在已经有两种python环境。 它会把新安装的python环境放在anaconda3的envs目录下 安装好之后,通过以下命令激活某个环境conda activate my_env如果切换环境后,又想回到之前的环境,可以通过命令conda deactivate删除一个已有的环境conda remove --name python34 --all