1、清华源
https://blog.csdn.net/WannaSeaU/article/details/88427010
添加清华镜像至Anaconda仓库
运行以下命令,将清华镜像添加至Anaconda仓库中
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 --set show_channel_urls yes
Conda Forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
bioconda
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
menpo
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
pytorch
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
#for legacy win-64
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123
2、如果清华源找不到就到官方源
conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
这是因为-c参数指明了下载pytorch的通道
3、使用官方 conda-forge
conda install -c conda-forge jupyter_contrib_nbextensions
4、查找这个包的位置
https://blog.csdn.net/weixin_38076506/article/details/105264630
首先输入 anaconda search -t conda xxxxx(你要安装的package名字),查看
根据提示的内容调整你的环境,如python版本,操作平台(这个最麻烦),调整后重新输入:
conda install -c https://conda.anaconda.org/pytorch faiss-gpu(你的packge名字),其中https://conda.anaconda.org/pytorch是查询上图中Name那一列得到的,我这里要安装pytorch对应的faiss-gpu包,所以是这个路径。