Abh*_*tia 10 python pip requirements.txt pytorch
如何在requirements.txt文件中包含它?对于Linux:
pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
pip install torchvision
Run Code Online (Sandbox Code Playgroud)
对于MacOS:
pip install http://download.pytorch.org/whl/torch-0.1.12.post2-cp27-none-macosx_10_7_x86_64.whl
pip install torchvision
Run Code Online (Sandbox Code Playgroud)
Chr*_*ick 14
您可以使用环境标记:
http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl ; sys_platform == "linux"
http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl ; sys_platform == "linux2"
http://download.pytorch.org/whl/torch-0.1.12.post2-cp27-none-macosx_10_7_x86_64.whl ; sys_platform == "darwin"
torchvision
Run Code Online (Sandbox Code Playgroud)
(Double Linux条目:linux2适用于Python 2,linux适用于Python 3)
| 归档时间: |
|
| 查看次数: |
5631 次 |
| 最近记录: |