python no module name _lzma,安装/编译pylzma(LZMA Python绑定)

I've already posted this question on the authors website, but I thought I might ask here as well.

I've been trying to install pylzma with this setup:

Windows 7 x64

Python 2.6.6 x64

the amd64 compiler coming from windows server 2003 sdk

cloned the git repo git://github.com/fancycode/pylzma.git

With a simple easy_install pylzma I got this:

cl : Command line warning D9025 :

overriding '/MD' with '/MT' pylzma.c

src/pylzma/pylzma.c(85) : warning

C4244: '=' : conversion from

'Py_ssize_t' to 'int', possible loss

of data

src/pylzma/pylzma.c(102) : error

C2275: 'CSha256' : illegal use of this

type as an expression

c:\users\xavier.lapointe\appdata\local\temp\easy_install-2mfkqu\pylzma-0.4.3\src\pylzma../7zip/C/Sha256.h(18)

: see declaration of 'CSha256'

src/pylzma/pylzma.c(102) : error

C2146: syntax error : missing ';'

before identifier 'sha'

src/pylzma/pylzma.c(102) : error

C2065: 'sha' : undeclared identifier

src/pylzma/pylzma.c(103) : error

C2065: 'sha' : undeclared identifier

src/pylzma/pylzma.c(103) : warning

C4133: 'function' : incompatible types

- from 'int *' to 'CSha256 *'

src/pylzma/pylzma.c(104) : error

C2143: syntax error : missing ';'

before 'type'

src/pylzma/pylzma.c(105) : error

C2143: syntax error : missing ';'

before 'type'

src/pylzma/pylzma.c(106) : error

C2143: syntax error : missing ';'

before 'type'

src/pylzma/pylzma.c(107) : error

C2143: syntax error : missing ';'

before 'type'

src/pylzma/pylzma.c(108) : error

C2065: 'round' : undeclared identifier

src/pylzma/pylzma.c(108) : error

C2065: 'round' : undeclared identifier

src/pylzma/pylzma.c(108) : error

C2065: 'rounds' : undeclared

identifier

src/pylzma/pylzma.c(108) : error

C2065: 'round' : undeclared identifier

src/pylzma/pylzma.c(109) : error

C2065: 'sha' : undeclared identifier

src/pylzma/pylzma.c(109) : warning

C4133: 'function' : incompatible types

- from 'int *' to 'CSha256 *'

src/pylzma/pylzma.c(110) : error

C2065: 'sha' : undeclared identifier

src/pylzma/pylzma.c(110) : warning

C4133: 'function' : incompatible types

- from 'int *' to 'CSha256 *'

src/pylzma/pylzma.c(1

你可能感兴趣的:(python,no,module,name,_lzma)