question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when install numba by pip

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
JWR126519commented, Dec 27, 2021

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

1reaction
esccommented, Dec 9, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found