[英]How pip install pylzma on windows 7 x64 , python 2.7
I assumed this should be working out of the box, but ... 我认为这应该是开箱即用的,但是...
i've pasted pip.log on pastbin the last few lines of error message is 我已经贴pip.log上pastbin错误消息的最后几行是
e:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DWITH_COMPAT=1 -DCOMPRESS_MF_MT=1 -Isrc/sdk -IC:\Python27\include -IC:\Python27\PC /Tcsrc\7zip\C\AesOpt.c /Fobuild\temp.win-amd64-2.7\Release\src\7zip\C\AesOpt.obj /MT
cl : Command line warning D9025 : overriding '/MD' with '/MT'
AesOpt.c
src\7zip\C\AesOpt.c(14) : fatal error C1083: Cannot open include file: 'wmmintrin.h': No such file or directory
error: command '"e:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe"' failed with exit status 2
via google search i found that wmmintrin.h is one of the headers comes with vc 10.0, i've installed visual studio 2010 ( contains vc 10.0 ), what i need to do is copy this file over ? 通过谷歌搜索,我发现wmmintrin.h是vc 10.0附带的头文件之一,我已经安装了Visual Studio 2010(包含vc 10.0),我需要做的就是将此文件复制过来?
isn't pip install something supposed to be simple and painless ? pip安装不是应该简单而轻松的工具吗?
edit: i tried to copy this file into vc9's include path, but came across several different errors 编辑:我试图将此文件复制到vc9的包含路径,但遇到几个不同的错误
i have read this Installing/compiling pylzma (lzma python binding) 我已经阅读了此安装/编译pylzma(lzma python绑定)
it seems author has fix what in the setup.py and .c file already. 看来作者已经修复了setup.py和.c文件中的内容。 i saw the /MANIFEST flag and Py_BEGIN_ALLOW_THREADS and Sha256_Init(&sha) have been moved after variable declarations:
我看到/ MANIFEST标志和Py_BEGIN_ALLOW_THREADS和Sha256_Init(&sha)在变量声明后已移动:
edit2: it seems vs2008(vc9) doesn't support the compiler intrinsics as seen in the error log, after i installed vs2008 sp1, it compiles without any error ... see log edit2:似乎vs2008(vc9)不支持错误日志中所示的编译器内部函数 ,在我安装vs2008 sp1之后,它可以编译而没有任何错误...请参阅日志
I would strongly recommend installing via a windows binary. 我强烈建议您通过Windows二进制文件进行安装。 It can be found at http://www.lfd.uci.edu/~gohlke/pythonlibs/#pylzma .
可以在http://www.lfd.uci.edu/~gohlke/pythonlibs/#pylzma找到。 This way, you don't have to worry about the stupid make errors.
这样,您不必担心愚蠢的make错误。 Trust me, you'ld waste time & energy & yet you wouldn't reap any benefits by trying to make the Visual Studio errors go away.
相信我,您会浪费时间和精力,但是通过使Visual Studio错误消失,您将不会获得任何好处。 But, if you do get success that way, please post the relevant answer here!
但是,如果您通过这种方式获得成功,请在此处发布相关答案!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.