Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GreatAsia opened this issue May 28, 2024 · 0 comments

Comments

@GreatAsia
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant