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

How to solve "ModuleNotFoundError: No module named 'lz4'"? #69

Open
Susie0731 opened this issue Jan 9, 2020 · 3 comments
Open

How to solve "ModuleNotFoundError: No module named 'lz4'"? #69

Susie0731 opened this issue Jan 9, 2020 · 3 comments

Comments

@Susie0731
Copy link

Is it an error due to old version? If so, which version can I install?Thx!

@laifi
Copy link

laifi commented Sep 24, 2020

latest version is fine , just run pip install lz4

@ParikhKadam
Copy link

ParikhKadam commented Dec 20, 2020

@Susie0731 Are you using colab or local machine?
Try this: pip install -U lz4==1.0.0

@Arch9SK7
Copy link

@Susie0731 Are you using colab or local machine?
Try this: pip install -U lz4==1.0.0

this happens anytime i try that or even just the standard pip install lz4

Building wheel for lz4 (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python.exe -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/setup.py'"'"'; file='"'"'/tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/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 /tmp/pip-wheel-3pnn0722
cwd: /tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/
Complete output (21 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.msys-3.1.7-x86_64-3.8
creating build/lib.msys-3.1.7-x86_64-3.8/lz4
copying lz4/version.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4
copying lz4/init.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4
creating build/lib.msys-3.1.7-x86_64-3.8/lz4/block
copying lz4/block/init.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4/block
creating build/lib.msys-3.1.7-x86_64-3.8/lz4/frame
copying lz4/frame/_compression.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4/frame
copying lz4/frame/init.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4/frame
running build_ext
building 'lz4._version' extension
creating build/temp.msys-3.1.7-x86_64-3.8
creating build/temp.msys-3.1.7-x86_64-3.8/lz4
creating build/temp.msys-3.1.7-x86_64-3.8/lz4libs
x86_64-pc-msys-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Ilz4libs -Ipy3c -I/usr/include/python3.8 -c lz4/_version.c -o build/temp.msys-3.1.7-x86_64-3.8/lz4/_version.o -O3 -Wall -Wundef
unable to execute 'x86_64-pc-msys-gcc': No such file or directory
error: command 'x86_64-pc-msys-gcc' failed with exit status 1

ERROR: Failed building wheel for lz4
Running setup.py clean for lz4
Failed to build lz4
Installing collected packages: pyparsing, packaging, deprecation, lz4
Running setup.py install for lz4 ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python.exe -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/setup.py'"'"'; file='"'"'/tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-c2hokvp5/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/lz4
cwd: /tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/
Complete output (21 lines):
running install
running build
running build_py
creating build
creating build/lib.msys-3.1.7-x86_64-3.8
creating build/lib.msys-3.1.7-x86_64-3.8/lz4
copying lz4/version.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4
copying lz4/init.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4
creating build/lib.msys-3.1.7-x86_64-3.8/lz4/block
copying lz4/block/init.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4/block
creating build/lib.msys-3.1.7-x86_64-3.8/lz4/frame
copying lz4/frame/_compression.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4/frame
copying lz4/frame/init.py -> build/lib.msys-3.1.7-x86_64-3.8/lz4/frame
running build_ext
building 'lz4._version' extension
creating build/temp.msys-3.1.7-x86_64-3.8
creating build/temp.msys-3.1.7-x86_64-3.8/lz4
creating build/temp.msys-3.1.7-x86_64-3.8/lz4libs
x86_64-pc-msys-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Ilz4libs -Ipy3c -I/usr/include/python3.8 -c lz4/_version.c -o build/temp.msys-3.1.7-x86_64-3.8/lz4/_version.o -O3 -Wall -Wundef
unable to execute 'x86_64-pc-msys-gcc': No such file or directory
error: command 'x86_64-pc-msys-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python.exe -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/setup.py'"'"'; file='"'"'/tmp/pip-install-w4jr6y_9/lz4_8c09b7f61a3e45b8bb1c53e921072f4f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-c2hokvp5/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/lz4 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

4 participants