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

Jul*_*ier 8 cmd xz windows-10

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

xz --decompress --stdout "file.csv.xz"
Run Code Online (Sandbox Code Playgroud)

在我的电脑上,使用 Windows 10,我收到以下错误:

'xz' 不是内部或外部命令,也不是可运行的程序或批处理文件

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

lit*_*lit 9

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

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