weixin_44719713
凡事无绝对
2021-02-27 12:56

安装numba时,遇到以下问题如何解决

F:\PycharmProjects\study>pip3 install numba  -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple
Collecting numba
  Using cached numba-0.51.2-cp39-cp39-win_amd64.whl
Requirement already satisfied: numpy>=1.15 in c:\users\26969\appdata\roaming\python\python39\site-packages (from numba) (1.20.1)
Requirement already satisfied: setuptools in d:\python39\lib\site-packages (from numba) (49.2.1)
Collecting llvmlite<0.35,>=0.34.0.dev0
  Downloading http://pypi.doubanio.com/packages/0b/96/07bfa93a103fb9e3e9ae7f9f7c6687ae714aee66b6f3000da3fad71e0aa2/llvmlite-0.34.0.tar.gz (107 kB)
     |████████████████████████████████| 107 kB 6.4 MB/s
Building wheels for collected packages: llvmlite
  Building wheel for llvmlite (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'd:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\26969\\AppData\\Local\\Temp\\pip-install-3velj01e\\llvmli
te_8d7da9ef19dd4d0c8f799a8cd9ffcb46\\setup.py'"'"'; __file__='"'"'C:\\Users\\26969\\AppData\\Local\\Temp\\pip-install-3velj01e\\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ff
cb46\\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 'C:\Users\26969\AppData\Local\Temp\pip-wheel-u5tru87t'
       cwd: C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\
  Complete output (24 lines):
  running bdist_wheel
  d:\python39\python.exe C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py
  Trying generator 'Visual Studio 15 2017 Win64'
  Traceback (most recent call last):
    File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 191, in <module>
      main()
    File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 179, in main
      main_win32()
    File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 88, in main_win32
      generator = find_win32_generator()
    File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 76, in find_win32_generator
      try_cmake(cmake_dir, build_dir, generator)
    File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 28, in try_cmake
      subprocess.check_call(['cmake', '-G', generator, cmake_dir])
    File "d:\python39\lib\subprocess.py", line 368, in check_call
      retcode = call(*popenargs, **kwargs)
    File "d:\python39\lib\subprocess.py", line 349, in call
      with Popen(*popenargs, **kwargs) as p:
    File "d:\python39\lib\subprocess.py", line 947, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "d:\python39\lib\subprocess.py", line 1416, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
  FileNotFoundError: [WinError 2] 系统找不到指定的文件。
  error: command 'd:\\python39\\python.exe' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for llvmlite
  Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, numba
  Attempting uninstall: llvmlite
    Found existing installation: llvmlite 0.35.0
    Uninstalling llvmlite-0.35.0:
      Successfully uninstalled llvmlite-0.35.0
    Running setup.py install for llvmlite ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\26969\\AppData\\Local\\Temp\\pip-install-3velj01e\\llvm
lite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\\setup.py'"'"'; __file__='"'"'C:\\Users\\26969\\AppData\\Local\\Temp\\pip-install-3velj01e\\llvmlite_8d7da9ef19dd4d0c8f799a8cd9
ffcb46\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' install --record 'C:\Users\26969\AppData\Local\Temp\pip-record-f2_ltuo4\install-record.txt' --single-version-externally-managed --compile --install
-headers 'd:\python39\Include\llvmlite'
         cwd: C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\
    Complete output (27 lines):
    running install
    running build
    got version from file C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\llvmlite/_version.py {'version': '0.34.0',
 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
    running build_ext
    d:\python39\python.exe C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py
    Trying generator 'Visual Studio 15 2017 Win64'
    Traceback (most recent call last):
      File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 191, in <module>
        main()
      File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 179, in main
        main_win32()
      File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 88, in main_win32
        generator = find_win32_generator()
      File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 76, in find_win32_generator
        try_cmake(cmake_dir, build_dir, generator)
      File "C:\Users\26969\AppData\Local\Temp\pip-install-3velj01e\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\ffi\build.py", line 28, in try_cmake
        subprocess.check_call(['cmake', '-G', generator, cmake_dir])
      File "d:\python39\lib\subprocess.py", line 368, in check_call
        retcode = call(*popenargs, **kwargs)
      File "d:\python39\lib\subprocess.py", line 349, in call
        with Popen(*popenargs, **kwargs) as p:
      File "d:\python39\lib\subprocess.py", line 947, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "d:\python39\lib\subprocess.py", line 1416, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] 系统找不到指定的文件。
    error: command 'd:\\python39\\python.exe' failed with exit code 1
    ----------------------------------------
  Rolling back uninstall of llvmlite
  Moving to d:\python39\lib\site-packages\llvmlite-0.35.0.dist-info\
   from D:\Python39\Lib\site-packages\~lvmlite-0.35.0.dist-info
  Moving to d:\python39\lib\site-packages\llvmlite\
   from D:\Python39\Lib\site-packages\~lvmlite
ERROR: Command errored out with exit status 1: 'd:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\26969\\AppData\\Local\
\Temp\\pip-install-3velj01e\\llvmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\\setup.py'"'"'; __file__='"'"'C:\\Users\\26969\\AppData\\Local\\Temp\\pip-install-3velj01e\\ll
vmlite_8d7da9ef19dd4d0c8f799a8cd9ffcb46\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.clos
e();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\26969\AppData\Local\Temp\pip-record-f2_ltuo4\install-record.txt' --single-version-exter
nally-managed --compile --install-headers 'd:\python39\Include\llvmlite' Check the logs for full command output.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答