【笔记】如何加载python中的各类库版本的requirement.txt的方法

在项目根目录下,可使用此命令自动安装依赖库:
sudo pip3 install -r requirements.txt
对于pytorch,可使用此命令从国内镜像进行快速安装:
pip3 install torch torchvision -i https://pypi.mirrors.ustc.edu.cn/simple

你可能感兴趣的:(python)