一、介绍
Anaconda环境自带有库,可以安装。但是需要用外网下载,比较慢。
我们使用 国内清华源镜像 安装库 会很快。
二、清华源镜像 安装代码
tsinghua镜像
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名
将 上面命令的包名,换成自己想要安装的包名
三、举例安装
使用清华源镜像给服务器安装库
比如 安装pandas库
1.进入自己的conda环境
conda activate pytorch-pk
2.安装库
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas