Windows 平台下 pip 下载whl第三方库

批量下载requirements.txt中的第三方库

命令:

pip wheel -w target_file_path -r requirements.txt

 

在windows环境中下载linux需要的包,通过 pip download

命令:

pip download -d . torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html --platform=linux_x86_64 --only-binary=:all:

 

posted @ 2020-03-04 10:42  今夜无风  阅读(660)  评论(0编辑  收藏  举报