安装virtualenv失败,因为下载的HTML不是焦油.gz

2024-09-30 12:16:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我遵循说明here

但是,当我尝试启动xvfz时:

gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now

这是因为我下载了一个HTML:

file virtualenv-16.0.tar.gz

提供:

virtualenv-16.0.tar.gz: HTML document, ASCII text, with no line terminators

我想问题可能出在我机器的某些设置上,但不知道是哪种设置。 谢谢你的帮助。你知道吗


Tags: inchildformatherevirtualenvhtmlstatusstdin
1条回答
网友
1楼 · 发布于 2024-09-30 12:16:27

这是因为您遵循的说明中提到的文件url无效,因此它返回以下html代码,而不是预期的tar.gz文件:

<html><head><title>301 Moved Permanently</title></head><body><center><h1>301 Moved Permanently</h1></center></body></html>

解决方案

尝试以下url: https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz

您可以从这里查阅: https://pypi.org/project/virtualenv/#files

相关问题 更多 >

    热门问题