I am not able to install numba-special in linux ERROR Command errored out with exit status 1 python setup py egg info Check the logs for full command output

0 votes

I am trying to install numba-special after install numba and numba-scipy. Python 3.8

ERROR: Command errored out with exit status 1:

     command: /home/enot/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f__dy7r7/numba-special/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f__dy7r7/numba-special/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-f__dy7r7/numba-special/pip-egg-info
         cwd: /tmp/pip-install-f__dy7r7/numba-special/
    Complete output (69 lines):
    Compiling numba_special/function_pointers.pyx because it depends on /home/enot/anaconda3/lib/python3.7/site-packages/Cython/Includes/cpython/long.pxd.
    [1/1] Cythonizing numba_special/function_pointers.pyx

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        'ndtri': PyLong_FromVoidPtr(<void *>sc.ndtri),
        'nrdtrimn': PyLong_FromVoidPtr(<void *>sc.nrdtrimn),
        'nrdtrisd': PyLong_FromVoidPtr(<void *>sc.nrdtrisd),
        'obl_cv': PyLong_FromVoidPtr(<void *>sc.obl_cv),
        'owens_t': PyLong_FromVoidPtr(<void *>sc.owens_t),
        'pdtr[double]': PyLong_FromVoidPtr(<void *>sc.pdtr[double]),
                                                         ^
    ------------------------------------------------------------

    numba_special/function_pointers.pyx:177:54: Can only parameterize template functions.

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        'nrdtrimn': PyLong_FromVoidPtr(<void *>sc.nrdtrimn),
        'nrdtrisd': PyLong_FromVoidPtr(<void *>sc.nrdtrisd),
        'obl_cv': PyLong_FromVoidPtr(<void *>sc.obl_cv),
        'owens_t': PyLong_FromVoidPtr(<void *>sc.owens_t),
        'pdtr[double]': PyLong_FromVoidPtr(<void *>sc.pdtr[double]),
        'pdtr[long]': PyLong_FromVoidPtr(<void *>sc.pdtr[long]),
                                                       ^
    ------------------------------------------------------------

    numba_special/function_pointers.pyx:178:52: Can only parameterize template functions.

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        'nrdtrisd': PyLong_FromVoidPtr(<void *>sc.nrdtrisd),
        'obl_cv': PyLong_FromVoidPtr(<void *>sc.obl_cv),
        'owens_t': PyLong_FromVoidPtr(<void *>sc.owens_t),
        'pdtr[double]': PyLong_FromVoidPtr(<void *>sc.pdtr[double]),
        'pdtr[long]': PyLong_FromVoidPtr(<void *>sc.pdtr[long]),
        'pdtrc[double]': PyLong_FromVoidPtr(<void *>sc.pdtrc[double]),
                                                           ^
    ------------------------------------------------------------

    numba_special/function_pointers.pyx:179:56: Can only parameterize template functions.

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        'obl_cv': PyLong_FromVoidPtr(<void *>sc.obl_cv),
        'owens_t': PyLong_FromVoidPtr(<void *>sc.owens_t),
        'pdtr[double]': PyLong_FromVoidPtr(<void *>sc.pdtr[double]),
        'pdtr[long]': PyLong_FromVoidPtr(<void *>sc.pdtr[long]),
        'pdtrc[double]': PyLong_FromVoidPtr(<void *>sc.pdtrc[double]),
        'pdtrc[long]': PyLong_FromVoidPtr(<void *>sc.pdtrc[long]),
                                                         ^
    ------------------------------------------------------------

    numba_special/function_pointers.pyx:180:54: Can only parameterize template functions.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-f__dy7r7/numba-special/setup.py", line 47, in <module>
        ext_modules=get_extension_modules(),
      File "/tmp/pip-install-f__dy7r7/numba-special/setup.py", line 29, in get_extension_modules
        [os.path.join('numba_special', 'function_pointers.pyx')]
      File "/home/enot/anaconda3/lib/python3.7/site-packages/Cython/Build/Dependencies.py", line 1101, in cythonize
        cythonize_one(*args)
      File "/home/enot/anaconda3/lib/python3.7/site-packages/Cython/Build/Dependencies.py", line 1224, in cythonize_one
        raise CompileError(None, pyx_file)
    Cython.Compiler.Errors.CompileError: numba_special/function_pointers.pyx
    ----------------------------------------

I try to install this package from Pycharm and from command line. pip install numba-special

I install: python3.8 dev; gcc; numba ana numba-scipy.

Using Windows 7 I successfully got numba-special after installing MSVC v142 -vs 2019 C++ x64/x86 build tools and Windows 10 sdk from Visual Studio 2019

Thank You for Your help.

Jul 13, 2020 in Python by Александр
• 120 points

edited Sep 25, 2020 by Gitika 1,025 views

Hi, @There,

Could you please post what is the command you used to install numba-special? Numba is compatible with Python 3.6, it may work if you change the python version and try.

I try to install this package from Pycharm and from command line. pip install numba-special

I install: python3.8 dev; gcc; numba ana numba-scipy.

Using Windows 7 I successfully got numba-special after installing MSVC v142 -vs 2019 C++ x64/x86 build tools and Windows 10 sdk from Visual Studio 2019

Hi, @There,

Could you please mention what Numpy versions you are using?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
2 answers
0 votes
3 answers
0 votes
11 answers
+1 vote
3 answers

What are the ways of detecting outliners in Python

code from http://eurekastatistics.com/using-the-median-absolute-deviation-to-find-outliers  This uses the L1 distance ...READ MORE

answered Aug 24, 2018 in Python by eatcodesleeprepeat
• 4,770 points

reshown Aug 24, 2018 by Priyaj 334 views
0 votes
1 answer
0 votes
1 answer

How to create Pandas series from numpy array?

Hi. Refer to the below command: import pandas ...READ MORE

answered Apr 1, 2019 in Python by Pavan
1,510 views