1

我试图弄清楚如何在 Pipfile 中为不同的操作系统指定不同的文件。特别是,pytorch 有不同的下载链接,天真地指定它们如下

[packages]
torch = {file = "http://...torch-0.4.1-win_amd64.whl", os_name='nt'}
torch = {file = "http://...torch-0.4.1-linux_x86_64.whl", os_name='posix'}

这不起作用,因为 toml 确实允许重复的键。有没有语法可以做到这一点?

4

0 回答 0