Zen的小站

小舟从此逝,江海寄余生

0%

【pip】【conda】常用指令

文章概览

pip

  1. 咱这个不知道为啥新建虚拟环境后pip版本都过低,需要先python -m pip install --upgrade pip

  2. 安装指定版本:pip install xxx==1.15

  3. https://pypi.doubanio.com/simple/https://pypi.mirrors.ustc.edu.cn/simple/https://pypi.tuna.tsinghua.edu.cn/simple

  4. 安装torchpip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio===0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

  5. pip install -r requirements.txt

  6. (103条消息) cuda和pytorch的关系 - CSDN

  7. (103条消息) torch_scatter安装_dream__1的博客-CSDN博客_torch_scatter

conda

(92条消息) Anaconda conda常用命令:从入门到精通_笨牛慢耕的博客-CSDN博客_anaconda conda命令怎么用

  • 新建虚拟环境

    1
    conda create python=3.10 -n python3.10
  • 删除虚拟环境

    1
    conda remove --name env_name --all 
  • 查看虚拟环境列表

    1
    conda info --envs

多想多做,发篇一作

-------------本文结束感谢您的阅读-------------
// 在最后添加