我正在尝试使用 Pipenv 和 pytorch。
要在 Windows 中安装 pytorch,我必须将以下代码写入 Pipfile:
[packages]
torch = {file = "http://download.pytorch.org/whl/cpu/torch-0.4.1-cp37-cp37m-win_amd64.whl"}
Run Code Online (Sandbox Code Playgroud)
然而,linux 上的wheel 文件是不同的。
[packages]
torch = {file = "http://download.pytorch.org/whl/cpu/torch-0.4.1.post2-cp37-cp37m-linux_x86_64.whl "}
Run Code Online (Sandbox Code Playgroud)
如何在 Pipfile 中指定它们?