Skip to content

win10 pip install -U aliyun-log-python-sdk 报错ERROR: Failed building wheel for lz4a #281

@GreatAsia

Description

@GreatAsia

python版本2.7
电脑win10 64位
执行pip install -U aliyun-log-python-sdk,安装报错

Building wheels for collected packages: lz4a
Building wheel for lz4a (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\xxx\python\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\
xxx\appdata\local\temp\pip-install-enpqaj\lz4a\setup.py'"'"'; file='"'"'c:\users\xxx\appdata\local\temp\pip-ins
tall-enpqaj\lz4a\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"
'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\xxx\appdata\local\temp\pip-wheel-a
c5shh'
cwd: c:\users\xxx\appdata\local\temp\pip-install-enpqaj\lz4a
Complete output (11 lines):
running bdist_wheel
running build
running build_ext
building 'lz4' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
C:\Users\xxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /G
S- /DNDEBUG -ID:\Python27\include -Ic:\users\xxx\python\PC /Tcsrc/lz4.c /Fobuild\temp.win-amd64-2.7\Release\src/lz4.obj -std=c
99 -O3 -Wall -W -Wundef -DVERSION="0.7.0" -DLZ4_VERSION="r119"
cl : Command line error D8004 : '/W' requires an argument
error: command 'C:\Users\xxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.
exe' failed with exit status 2

ERROR: Failed building wheel for lz4a
Running setup.py clean for lz4a
Failed to build lz4a
Installing collected packages: lz4a, dateparser, aliyun-log-python-sdk
Running setup.py install for lz4a ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\xxx\python\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\
xxx\appdata\local\temp\pip-install-enpqaj\lz4a\setup.py'"'"'; file='"'"'c:\users\xxx\appdata\local\temp\pip-i
nstall-enpqaj\lz4a\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"
'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\users\xxx\appdata\local\temp\pip-rec
ord-2sd5bl\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\xxx\python\include\si
te\python2.7\lz4a'
cwd: c:\users\xxx\appdata\local\temp\pip-install-enpqaj\lz4a
Complete output (11 lines):
running install
running build
running build_ext
building 'lz4' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
C:\Users\xxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3
/GS- /DNDEBUG -ID:\Python27\include -Ic:\users\xxx\python\PC /Tcsrc/lz4.c /Fobuild\temp.win-amd64-2.7\Release\src/lz4.obj -std
=c99 -O3 -Wall -W -Wundef -DVERSION="0.7.0" -DLZ4_VERSION="r119"
cl : Command line error D8004 : '/W' requires an argument
error: command 'C:\Users\xxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\c
l.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\xxx\python\scripts\python.exe' -u -c 'import sys, setuptools, tokeniz
e; sys.argv[0] = '"'"'c:\users\xxx\appdata\local\temp\pip-install-enpqaj\lz4a\setup.py'"'"'; file='"'"'c:\users\
xxx\appdata\local\temp\pip-install-enpqaj\lz4a\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.
read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\user
s\xxx\appdata\local\temp\pip-record-2sd5bl\install-record.txt' --single-version-externally-managed --compile --install-headers
'c:\users\xxx\python\include\site\python2.7\lz4a' Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions