pip install:
Pip installs Packages, 是python的官方认可的包管理器,最常用于安装在Python包索引(PyPI)上发布的包。
pip用来PyPI的python所有的依赖包,并且可以安装任何在PyPI上已上传的先前版本的依赖包
conda install:
conda是一种通用包管理系统,是想要构建和管理任何语言的任何类型的软件。因此,它也使用于python包
Package, dependency and environment management for any language—Python, R, Ruby, Lua, Scala, Java, JavaScript, C/ C++, FORTRAN, and more.
conda config --show
custom_channels:
pkgs/main: <https://repo.anaconda.com>
pkgs/r: <https://repo.anaconda.com>
pkgs/msys2: <https://repo.anaconda.com>
pkgs/pro: <https://repo.anaconda.com>
custom_multichannels:
defaults:
- <https://repo.anaconda.com/pkgs/main>
- <https://repo.anaconda.com/pkgs/r>
- <https://repo.anaconda.com/pkgs/msys2>
local:
debug: False
default_channels:
- <https://repo.anaconda.com/pkgs/main>
- <https://repo.anaconda.com/pkgs/r>
- <https://repo.anaconda.com/pkgs/msys2>
conda config --add channels <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/>
conda config --add channels <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/>
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/cloud/bioconda/>
类似python virtualenv
conda update conda
conda info --envs
conda env list
conda create --name yahaha python=3.9
conda activate yahaha
conda deactivate yahaha