linux下 python源码包解压报错

 

执行下面的命令

tar -zvxf Python.3.6.5.tgz

 

 

报错

gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now的解决方法

可能是上传源码文件时损坏导致

执行下面命令

ls -lht 查看文件大小

果然大小不一样

原因是从windows上传python源码文件时是以ascll形式传的,改用二进制传输问题解决

猜你喜欢

转载自www.cnblogs.com/z-x-y/p/9454220.html
今日推荐