使用wget下载python3.4时出错

时间:2014-07-03 20:20:33

标签: python shell centos wget tar

我想在我的CentOS上安装python 3.4。 wget告诉我这个文字:

[root@5]# wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz
--2014-07-03 16:39:11--  https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz
Resolving www.python.org... 185.31.19.175
Connecting to www.python.org|185.31.19.175|:443... connected.
ERROR: certificate common name `*.c.ssl.fastly.net' doesn't match requested host name `www.python.org'.
To connect to www.python.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.


我使用--no-check-certificate,但当我想要extraxt Python-3.4.1.tar.xz时,请看到此错误:

[root@5]# tar xvf Python-3.4.1.tar.xz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 4828 bytes from Python-3.4.1.tar.xz
tar: Error exit delayed from previous errors

我该如何解决?

1 个答案:

答案 0 :(得分:0)

首先安装xz-devel。例如。在CentOS上:

yum install xz-devel

之后你需要用xz:

提取

xz -d Python-3.4.1.tar.xz

然后你可以正常开始。

tar -xvf Python-3.4.1.tar

希望它有所帮助。