Pip install numba ошибка

C:UsersAdministrator>pip install numba Collecting numba Using cached https://files.pythonhosted.org/packages/33/6f/47d87ded23f3d1aa1e221d75278caf427e8da80649c14312172857bad64f/numba-0.46.0.tar...

C:UsersAdministrator>pip install numba
Collecting numba
Using cached https://files.pythonhosted.org/packages/33/6f/47d87ded23f3d1aa1e221d75278caf427e8da80649c14312172857bad64f/numba-0.46.0.tar.gz
ERROR: Command errored out with exit status 1:
command: ‘c:usersadministratorappdatalocalprogramspythonpython38python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersAdministratorAppDataLocalTemppip-install-9oo7ymxjnumbasetup.py'»‘»‘; file='»‘»‘C:UsersAdministratorAppDataLocalTemppip-install-9oo7ymxjnumbasetup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ egg_info —egg-base ‘C:UsersAdministratorAppDataLocalTemppip-install-9oo7ymxjnumbapip-egg-info’
cwd: C:UsersAdministratorAppDataLocalTemppip-install-9oo7ymxjnumba
Complete output (207 lines):
Could not locate executable g77
Could not locate executable f77
Could not locate executable ifort
Could not locate executable ifl
Could not locate executable f90
Could not locate executable DF
Could not locate executable efl
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable g95
Could not locate executable efort
Could not locate executable efc
Could not locate executable flang
don’t know how to compile Fortran code on platform ‘nt’
‘svnversion’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。
non-existing path in ‘numpydistutils’: ‘site.cfg’
Running from numpy source directory.
C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4setup.py:419: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()
C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilssystem_info.py:690: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
self.calc_info()
C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilssystem_info.py:690: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info()
C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilssystem_info.py:690: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilssystem_info.py:1712: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
if getattr(self, ‘calc_info{}’.format(lapack))():
C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilssystem_info.py:1712: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
if getattr(self, ‘calc_info{}’.format(lapack))():
c:usersadministratorappdatalocalprogramspythonpython38libdistutilsdist.py:274: UserWarning: Unknown distribution option: ‘define_macros’
warnings.warn(msg)
Traceback (most recent call last):
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilscore.py», line 148, in setup
dist.run_commands()
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilsdist.py», line 966, in run_commands
self.run_command(cmd)
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandbdist_egg.py», line 163, in run
self.run_command(«egg_info»)
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilscommandegg_info.py», line 26, in run
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilscommandbuild_src.py», line 142, in run
File «C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilscommandbuild_src.py», line 150, in build_sources
File «C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilscommandbuild_src.py», line 267, in build_py_modules_sources
File «C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilsmisc_util.py», line 2270, in generate_config_py
File «c:usersadministratorappdatalocalprogramspythonpython38libdistutilsdir_util.py», line 70, in mkpath
os.mkdir(head, mode)
File «c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py», line 310, in wrap
path = self._remap_input(name, path, *args, **kw)
File «c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py», line 452, in _remap_input
self._violation(operation, os.path.realpath(path), *args, **kw)
File «c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py», line 407, in _violation
raise SandboxViolation(operation, args, kw)
setuptools.sandbox.SandboxViolation: SandboxViolation: mkdir(‘C:UsersADMINI1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4build’, 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 154, in save_modules
    yield saved
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 195, in setup_context
    yield
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "C:UsersADMINI~1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4setup.py", line 444, in <module>
  File "C:UsersADMINI~1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4setup.py", line 436, in setup_package
  File "C:UsersADMINI~1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilscore.py", line 171, in setup
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "c:usersadministratorappdatalocalprogramspythonpython38libdistutilscore.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: SandboxViolation: mkdir('C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-g2a7a883\numpy-1.17.4\build', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 1144, in run_setup
    run_setup(setup_script, args)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 253, in run_setup
    raise
  File "c:usersadministratorappdatalocalprogramspythonpython38libcontextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 195, in setup_context
    yield
  File "c:usersadministratorappdatalocalprogramspythonpython38libcontextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptools_vendorsix.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 154, in save_modules
    yield saved
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 195, in setup_context
    yield
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "C:UsersADMINI~1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4setup.py", line 444, in <module>
  File "C:UsersADMINI~1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4setup.py", line 436, in setup_package
  File "C:UsersADMINI~1AppDataLocalTempeasy_install-g2a7a883numpy-1.17.4numpydistutilscore.py", line 171, in setup
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "c:usersadministratorappdatalocalprogramspythonpython38libdistutilscore.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: SandboxViolation: mkdir('C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-g2a7a883\numpy-1.17.4\build', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:UsersAdministratorAppDataLocalTemppip-install-9oo7ymxjnumbasetup.py", line 365, in <module>
    setup(**metadata)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolsdist.py", line 716, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagespkg_resources__init__.py", line 780, in resolve
    dist = best[req.key] = env.best_match(
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagespkg_resources__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagespkg_resources__init__.py", line 1077, in obtain
    return installer(requirement)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolsdist.py", line 786, in fetch_build_egg
    return cmd.easy_install(req)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 679, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 705, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 890, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 1158, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 1146, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: mkdir('C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-g2a7a883\numpy-1.17.4\build', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Я пытаюсь установить numba для python, но после выполнения инструкции с домашней страницы я получил эту ошибку, чтобы страница extension_types не была найдена.

Я был бы очень признателен, если бы кто-то знал, что я делаю неправильно, или если я пропустил что-то, что я должен установить.

Спасибо вам заблаговременно.

Python 2.7.2+ (default, Jul 20 2012, 22:15:08) 
Type "copyright", "credits" or "license" for more information.

IPython 0.10.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython features.
%quickref -> Quick reference.
help      -> Python own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import numba
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/mijc/Downloads/numba/<ipython console> in <module>()

/home/mijc/Downloads/numba/numba/__init__.py in <module>()
      2 # type inferer

      3 from numba.special import *
----> 4 from numba import module_type_inference
      5 
      6 import os

/home/mijc/Downloads/numba/numba/module_type_inference.py in <module>()
      6 from numba import *
      7 from numba.minivect import minitypes
----> 8 from numba import typesystem, symtab
      9 
     10 import numpy.random

/home/mijc/Downloads/numba/numba/typesystem/__init__.py in <module>()
      2 from exttypes import *
      3 from closuretypes import *
      4 from ssatypes import *
      5 from templatetypes import *
      6 from typemapper import *

/home/mijc/Downloads/numba/numba/typesystem/basetypes.py in <module>()
      6 
      7 import numba
----> 8 from numba import  extension_types, error
      9 from numba.minivect.minitypes import *
     10 from numba.minivect.minitypes import map_dtype

ImportError: cannot import name extension_types

EDIT:
Я установил numba через:

git clone https://github.com/numba/numba.git
cd numba
python setup.py install

Когда я пытаюсь установить его через pip, я получаю следующую ошибку:

pip install numba --upgrade
Downloading/unpacking numba
  Downloading numba-0.5.0.tar.gz (333Kb): 333Kb downloaded
  Running setup.py egg_info for package numba
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/mijc/Downloads/numba/build/numba/setup.py", line 90, in <module>
        cython_gdb=True),
      File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/extension.py", line 108, in __init__
        **kw)
    TypeError: unbound method __init__() must be called with Extension instance as first argument (got Extension instance instead)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/mijc/Downloads/numba/build/numba/setup.py", line 90, in <module>

    cython_gdb=True),

  File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/extension.py", line 108, in __init__

    **kw)

TypeError: unbound method __init__() must be called with Extension instance as first argument (got Extension instance instead)

----------------------------------------
Command python setup.py egg_info failed with error code 1

Hey all,

I’d like to try using the Numba package to try the just-in-time compiling feature, and see if I can speed up the execution of one of my scripts.

I’m using 64-bit Ubuntu, and working in a virtual-environment (Python 3.8), and trying to install Numba with pip:

pip3 install --user numba

This spits out a load of errors — full output of the command can bee seen here.

On first read through, it looks like it’s trying to either use or create a symbolic link to LLVM_CONFIG….

So I tried installing llvm-10 and all the rest of the useful packages via apt:

$ sudo apt install llvm-10 llvm-10-dev llvm-10-doc llvm-10-examples llvm-10-runtme llvm-10-tools

Which worked fine, then tried both adding a symbolic link to my bin, and exporting the variable:

$ export LLVM_CONFIG='/usr/bin/llvm-config-10'

and re-running the pip command, but no success… Most of the threads I find are for previous versions of Ubuntu, and nothing seems to be up to date to 18.04… Or they all have basically the same steps, ( as above) which just don’t seem to work.. e.g. I tried this thread already.

Any magic bullets?


So, I went back to the install pages from the Numba manual and gave it a read, where I see it states:

This will download all of the needed dependencies as well. You do not need to have LLVM installed to use Numba (in fact, Numba will ignore all LLVM versions installed on the system) as the required components are bundled into the llvmlite wheel.

So I removed all traces of llvm from my system, try to install numba with pip and get the same error stack as previous…

So I then re-installed all llvm-10 packages again, re-created the symbolic links in my /usr/bin:

$ sudo -i
$ cd /usr/bin
$  rm -r llvm-config
$  ln -s llvm-config-10 llvm-config
$  ln -s llvm-config-10 LLVM_CONFIG

Then back to my venv and try installing llvmlite with pip again.. which gives me errors still, but new ones…. full dump here

The «SVML not detected» error brings me back to here which again points at LLVM_CONFIG not being set up correctly, but it is! e.g.:

$ LLVM_CONFIG --version
10.0.1

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


Closed

ingframin opened this issue

Dec 15, 2021

· 2 comments

Comments

@ingframin

I tried to install Numba using pip on Windows 10.
I have Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) .

I have Clang installed on my computer:
PS C:Usersingframin> clang -v
clang version 11.0.0
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:msys64mingw64bin

Yet the installation of llvmlite fails with the error here below.
I don’t understand what file is missing or what setting is wrong.
Installing from https://www.lfd.uci.edu/~gohlke/pythonlibs/ fails as there is no llvmlite or numba for Python 3.10.
Error:

PS C:Usersingframin> pip install numba
WARNING: Ignoring invalid distribution -yinstaller (c:python310libsite-packages)
WARNING: Ignoring invalid distribution -yinstaller (c:python310libsite-packages)
Collecting numba
  Using cached numba-0.51.2.tar.gz (2.1 MB)
  Preparing metadata (setup.py) ... done
Collecting llvmlite<0.35,>=0.34.0.dev0
  Using cached llvmlite-0.34.0.tar.gz (107 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.15 in c:python310libsite-packages (from numba) (1.21.3)
Requirement already satisfied: setuptools in c:python310libsite-packages (from numba) (59.2.0)
Using legacy 'setup.py install' for numba, since package 'wheel' is not installed.
Using legacy 'setup.py install' for llvmlite, since package 'wheel' is not installed.
WARNING: Ignoring invalid distribution -yinstaller (c:python310libsite-packages)
Installing collected packages: llvmlite, numba
    Running setup.py install for llvmlite ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"'; __file__='"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersingframinAppDataLocalTemppip-record-5oeve_pxinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includellvmlite'
         cwd: C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196a
    Complete output (29 lines):
    running install
    C:Python310libsite-packagessetuptoolscommandinstall.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    got version from file C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196allvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
    running build_ext
    C:Python310python.exe C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py
    Trying generator 'Visual Studio 15 2017 Win64'
    Traceback (most recent call last):
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 191, in <module>
        main()
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 179, in main
        main_win32()
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 88, in main_win32
        generator = find_win32_generator()
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 76, in find_win32_generator
        try_cmake(cmake_dir, build_dir, generator)
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 28, in try_cmake
        subprocess.check_call(['cmake', '-G', generator, cmake_dir])
      File "C:Python310libsubprocess.py", line 364, in check_call
        retcode = call(*popenargs, **kwargs)
      File "C:Python310libsubprocess.py", line 345, in call
        with Popen(*popenargs, **kwargs) as p:
      File "C:Python310libsubprocess.py", line 966, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "C:Python310libsubprocess.py", line 1435, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] The system cannot find the file specified
    error: command 'C:\Python310\python.exe' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"'; __file__='"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersingframinAppDataLocalTemppip-record-5oeve_pxinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includellvmlite' Check the logs for full command output.

@esc

I tried to install Numba using pip on Windows 10. I have Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) .

I have Clang installed on my computer: PS C:Usersingframin> clang -v clang version 11.0.0 Target: x86_64-w64-windows-gnu Thread model: posix InstalledDir: C:msys64mingw64bin

Yet the installation of llvmlite fails with the error here below. I don’t understand what file is missing or what setting is wrong. Installing from https://www.lfd.uci.edu/~gohlke/pythonlibs/ fails as there is no llvmlite or numba for Python 3.10. Error:

PS C:Usersingframin> pip install numba
WARNING: Ignoring invalid distribution -yinstaller (c:python310libsite-packages)
WARNING: Ignoring invalid distribution -yinstaller (c:python310libsite-packages)
Collecting numba
  Using cached numba-0.51.2.tar.gz (2.1 MB)
  Preparing metadata (setup.py) ... done
Collecting llvmlite<0.35,>=0.34.0.dev0
  Using cached llvmlite-0.34.0.tar.gz (107 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.15 in c:python310libsite-packages (from numba) (1.21.3)
Requirement already satisfied: setuptools in c:python310libsite-packages (from numba) (59.2.0)
Using legacy 'setup.py install' for numba, since package 'wheel' is not installed.
Using legacy 'setup.py install' for llvmlite, since package 'wheel' is not installed.
WARNING: Ignoring invalid distribution -yinstaller (c:python310libsite-packages)
Installing collected packages: llvmlite, numba
    Running setup.py install for llvmlite ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"'; __file__='"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersingframinAppDataLocalTemppip-record-5oeve_pxinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includellvmlite'
         cwd: C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196a
    Complete output (29 lines):
    running install
    C:Python310libsite-packagessetuptoolscommandinstall.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    got version from file C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196allvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
    running build_ext
    C:Python310python.exe C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py
    Trying generator 'Visual Studio 15 2017 Win64'
    Traceback (most recent call last):
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 191, in <module>
        main()
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 179, in main
        main_win32()
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 88, in main_win32
        generator = find_win32_generator()
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 76, in find_win32_generator
        try_cmake(cmake_dir, build_dir, generator)
      File "C:UsersingframinAppDataLocalTemppip-install-ohsks9f9llvmlite_c07807dc14084096ad685c995948196affibuild.py", line 28, in try_cmake
        subprocess.check_call(['cmake', '-G', generator, cmake_dir])
      File "C:Python310libsubprocess.py", line 364, in check_call
        retcode = call(*popenargs, **kwargs)
      File "C:Python310libsubprocess.py", line 345, in call
        with Popen(*popenargs, **kwargs) as p:
      File "C:Python310libsubprocess.py", line 966, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "C:Python310libsubprocess.py", line 1435, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] The system cannot find the file specified
    error: command 'C:\Python310\python.exe' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"'; __file__='"'"'C:\Users\ingframin\AppData\Local\Temp\pip-install-ohsks9f9\llvmlite_c07807dc14084096ad685c995948196a\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersingframinAppDataLocalTemppip-record-5oeve_pxinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includellvmlite' Check the logs for full command output.

Thank you for asking about this. Numba/llvmlite do not support Python 3.10 at present. The new versions 0.55 and 0.38 to be released soon (release candidates before Christmas and finals after) however will. The reason you are seeing this error is because Numba 0.51 is the last version of Numba to not enforce an upper limit on the version numbers. Hence, pip will assume that this older version must be 3.10 compatible, download the source and then try to compile it. The result is the error message. My recommendation would be to use 3.9 for the time being if possible or otherwise wait until a 0.55 release candidate is out and then try to use that.

@FapAgent

Понравилась статья? Поделить с друзьями:
  • Pip install mysqlclient error
  • Ping код ошибки 1231
  • Pip install matplotlib error
  • Ping target via firehouse как исправить
  • Pip install m2crypto error