我想用PowerShell从SourceForge下载openBLAS。我的问题是,我读过的PS文档总是引用特定的文件名,但是,当我提交该请求时,SF将其重定向到/download,然后发生了一些事情,但我没有得到我想要的东西。下面是当前的代码:
$url = 'https://sourceforge.net/projects/openblas/files/v0.3.6/OpenBLAS-0.3.6-x64.zip'
# $url = 'https://sourceforge.net/projects/openblas/files/v0.3.6/OpenBLAS-0.3.6-x64.zip/download'
$output = 'C:\BLAS\OpenBLAS-0.3.6-x64.zip'
Invoke-WebRequest $url -OutFile $output发布于 2019-11-24 00:44:30
它适用于我在Windows10 PowerShell 5.1下的操作。
Invoke-WebRequest -Uri $url -OutFile $path -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFoxhttps://stackoverflow.com/questions/59008199
复制相似问题