无法使用Windows提取Python源代码 [英] Unable to extract Python source code using Windows

查看:89
本文介绍了无法使用Windows提取Python源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试访问Python源代码,但每当我尝试使用最新版本的WinZip提取文件时,我都会获取


(版本10)我得到以下错误错误读取标题后

处理0条目

我的印象是我可以(从阅读各种帖子

在这个组上)我可以使用WinZip简单地提取tar球。

如果不是这样的话有人知道我怎么能真正得到源
$ b Windows平台上的$ b代码。我无法访问UNIX盒子,因此'

不是我的选择

提前感谢您提供的任何帮助

Jeff

I''m currently trying to get access to the Python source code, however
whenever I try to extract the files using the latest version of WinZip
(version 10) I get the following error "error reading header after
processing 0 entries"
I was under the impression that I could (from reading the various posts
on this group) that I could simply extract the tar ball, using WinZip.
If this is not the case does anybody know how I can actually get source
code on Windows platform. I don''t have access to a UNIX box so that''s
not an option for me
thanks in advance for any help you can provide
Jeff

推荐答案

El *****@rogers.com 写道:
我正在尝试访问Python源代码,但每当我尝试提取文件时



来自什么?

使用最新版本的WinZip
(版本10)我收到以下错误错误读取标题后我的印象是我可以(通过阅读这个组中的各个帖子)我可以使用WinZip简单地提取tar球。


我不知道winzip是否处理tarball ...

如果不是这样的话有人知道我怎么能真正得到源码吗? Windows平台上的代码。
I''m currently trying to get access to the Python source code, however
whenever I try to extract the files
from what ?
using the latest version of WinZip
(version 10) I get the following error "error reading header after
processing 0 entries"
I was under the impression that I could (from reading the various posts
on this group) that I could simply extract the tar ball, using WinZip.
I don''t know if winzip handles tarballs...
If this is not the case does anybody know how I can actually get source
code on Windows platform.




您可以从python.org获取Python源代码


HTH

-

bruno desthuilliers

python -c" print''@''。join([''。''。join([w [:对于在''o **** @ xiludom.gro''中的

p,对于w来说:-1表示w。分裂('''''' )])



You can get Python sources from python.org

HTH
--
bruno desthuilliers
python -c "print ''@''.join([''.''.join([w[::-1] for w in p.split(''.'')]) for
p in ''o****@xiludom.gro''.split(''@'')])"


El ***** @ rogers.com 写道:
我正在尝试访问Python源代码,但每当我尝试使用最新版本的WinZip提取文件时

(版本10)我得到以下错误
处理0条目后错误读取标题
我的印象是我可以(从阅读各个帖子上来了解
)他的小组,我可以使用WinZip简单地提取焦油球。
I''m currently trying to get access to the Python source code, however
whenever I try to extract the files using the latest version of WinZip
(version 10) I get the following error "error reading header after
processing 0 entries"
I was under the impression that I could (from reading the various posts
on this group) that I could simply extract the tar ball, using WinZip.



也许你把文件拉成非二进制(因此得到的LF转向了

CRLFs)。您应该能够使用最近的Python来阅读存档

。首先,我会这样做:


导入md5

BLOCK_SIZE = 4096 * 8#或其他

accumulator = md5。 new()

source = open(''whatever.tar.gz'',''rb'')

尝试:

而是的:

data = source.read(BLOCK_SIZE)

如果数据:

accumulator.update(数据)
$ b $另外:

休息

终于:

source.close()

print''md5 checksum =' ',accumulator.hexdigest()

将该结果与已发布的存档校验和进行比较

以确保您没有乱码存档。


--Scott David Daniels
sc *** ********@acm.org


>您可以从python.org获取Python源


我找不到可以使用WinZip的源文件。

任何人都可以请指出确切的网址,它会让我进入

源代码?但它是tar球格式或gzip格式,而不是因为WinZip没有打开,因此
对我有用。

>You can get Python sources from python.org

I''m unable to locate a source file brings that will work with WinZip.
Can anybody please point me to the exact URL that will get me to the
source code? but it it is tar ball format or a gzip format, than that
will work for me as WinZip is not open.


这篇关于无法使用Windows提取Python源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆