Linux系统安装deepmd可用的源配置

在这里插入图片描述

命令:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/deepmodeling/linux-64/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/deepmodeling/noarch/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

conda config --set channel_priority true

conda config --set show_channel_urls yes

在这个源配置下按照官方知乎给的命令:

conda install deepmd-kit=*=*cpu lammps-dp=*=*cpu -c deepmodeling

可一键安装两个。

下面是一些常用的conda命令:

conda list 查看所有安装包
conda config --show 查看conda配置(可以vim .condarc查看源配置)
conda config --remove-key channels 删除所有镜像源
conda config --remove channels ‘https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/’ 删除指定源
conda list // 显示已安装的python包
conda search xxx -i 查看某个包的依赖
conda search xxx // 搜索python包
conda install xxx==1.2 // 安装指定安装包版本
conda install D:xxx // 安装本地python包(绝对路径)
conda env list // 查看当前存在哪些虚拟环境
conda create -n pytorch python=3.7 // 创建虚拟环境pytorch,python版本为3.7
conda activate pytorch // 启用虚拟环境
conda deactivate // 退出当前虚拟环境
conda remove -n pytorch --all // 删除虚拟环境
conda info // 显示相关信息

一套xjtu的源
conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/deepmodeling/linux-64/

conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/deepmodeling/noarch/

conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/msys2/

conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/conda-forge/

conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/conda-forge/

conda config --set channel_priority true

conda config --set show_channel_urls yes

PC版:
conda config --remove-key channels
conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.xjtu.edu.cn/anaconda/cloud/deepmodeling/noarch/
conda config --set channel_priority true
conda config --set show_channel_urls yes

pip源:
pip3 install torch -i https://mirrors.xjtu.edu.cn/pypi/simple

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值