Error when install numba by pip
See original GitHub issueI have the following error when trying to install by pip install numba
on Ubuntu 16.04. Could you show me how to fix it.
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eulNd9/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-eulNd9/llvmlite/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-U3yvuq
cwd: /tmp/pip-install-eulNd9/llvmlite/
Complete output (7 lines):
running bdist_wheel
/usr/bin/python /tmp/pip-install-eulNd9/llvmlite/ffi/build.py
File "/tmp/pip-install-eulNd9/llvmlite/ffi/build.py", line 122
raise ValueError(msg.format(_ver_check_skip)) from e
^
SyntaxError: invalid syntax
error: command '/usr/bin/python' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, numba
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eulNd9/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-eulNd9/llvmlite/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-rUBf7g/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/lva/.local/include/python2.7/llvmlite
cwd: /tmp/pip-install-eulNd9/llvmlite/
Complete output (10 lines):
running install
running build
got version from file /tmp/pip-install-eulNd9/llvmlite/llvmlite/_version.py {'version': '0.32.1', 'full': 'aa11b129c0b55973067422397821ae6d44fa5e70'}
running build_ext
/usr/bin/python /tmp/pip-install-eulNd9/llvmlite/ffi/build.py
File "/tmp/pip-install-eulNd9/llvmlite/ffi/build.py", line 122
raise ValueError(msg.format(_ver_check_skip)) from e
^
SyntaxError: invalid syntax
error: command '/usr/bin/python' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eulNd9/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-eulNd9/llvmlite/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-rUBf7g/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/lva/.local/include/python2.7/llvmlite Check the logs for full command output.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Installing numba for python - Stack Overflow
I am trying to install numba for python but after following the instruction from the homepage I got this error that the extension_types...
Read more >ImportError installing via PIP - Support - Numba Discussion
Hi, I'm trying to install numba via pip - i'm having trouble. Am I doing something wrong? Blockquote $ python3.8 -m venv venv...
Read more >Installation — Numba 0.50.1 documentation
To use CUDA with Numba installed by pip , you need to install the CUDA SDK from NVIDIA. ... colorama - makes error...
Read more >How to install numba in Python | bobbyhadz
If you get the error "'pip' is not recognized as an internal or external command", use the python -m command when installing numba...
Read more >Install Numba on Debian - Google Groups
I get errors when trying to install Numba either with the git clone method or installing it with pip. I'll put the error...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have tried this to solve this issue. $pip install wheel (or pip3 install wheel)
This made some more progress. But the final solution I found was below. $sudo apt install python3-numba
@Aldurine thank you for submitting this. I can see from the log that you are trying to install Numba on Python 3.9 – however, this Python version is currently not supported. Please try to use 3.6/3.7/3.8. Thank you for using Numba.