在 Windows 10 中从命令行打开 xz 文件

Open xz file from the command line in Windows 10

我的同事使用 mac 或 linux 使用此行打开 xz 文件:

xz --decompress --stdout "file.csv.xz"

在我的电脑上,windows 10,我收到以下错误:

'xz' is not recognized as an internal or external command, operable program or batch file

windows 上的命令是否不同? 还是安装程序并将其放在正确的目录中(例如,您需要 curl.exe 才能使用 rcurl)?

是的,您需要在计算机上安装 xz 才能 运行 它。 http://tukaani.org/xz/

7-Zip 支持 .xz 文件已有一段时间,如果已安装,您或许可以使用它。 http://www.7-zip.org/