Installing on macOS — conda 24.3.1.dev18 documentation
这里是Miniconda的官网,你可以在上面下载自己需要的版本,
安装完成后需要初始化一下
## source <path to conda>/bin/activate 路径名不对的话就替换下
source /opt/miniconda3/bin/activate
conda init --all下面自定义一个环境,例如命名 demo,指定 python 版本为 3.9,再激活一下就可以了。
conda create --name demo python=3.9 -y
conda activate demo查看当前已有的环境或是安装的包
conda info -e
conda list利用 conda 安装需要的包,例如
conda install ipython注意
与 python 相关的包都使用 conda 来管理,其他的 Linux 包由 brew 来管理。 不然会有包找不到的冲突