Установка Python scanpy не удалась, хотя llvmlite уже установлен - ОШИБКА: команда выполнена с ошибкой со статусом выхода 1
Я хочу установить scanpy (на Python 3.9.1, Windows 10).
Прежде чем пытаться установить scanpy, я проверяю, что с llvmlite все в порядке, которое я ранее устанавливал, если llvmlite не удалось установить. Ошибка при создании llvmlite:
C:\Users\plain>pip show llvmlite
Name: llvmlite
Version: 0.35.0
Но когда я затем пытаюсь установить scanpy, он работает нормально, пока не дойдет до llvmlite:
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\plain\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\plain\\AppData\\Local\\Temp\\pip-install-zjs7htmt\\llvmlite_b03580fed61b446a8bb2d96cef240b16\\setup.py'"'"'; __file__='"'"'C:\\Users\\plain\\AppData\\Local\\Temp\\pip-install-zjs7htmt\\llvmlite_b03580fed61b446a8bb2d96cef240b16\\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\plain\AppData\Local\Temp\pip-record-54d4suso\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\plain\appdata\local\programs\python\python39\Include\llvmlite'
cwd: C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\
Complete output (27 lines):
running install
running build
got version from file C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\llvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
running build_ext
c:\users\plain\appdata\local\programs\python\python39\python.exe C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\ffi\build.py
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
File "C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\ffi\build.py", line 191, in <module>
main()
File "C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\ffi\build.py", line 179, in main
main_win32()
File "C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\ffi\build.py", line 88, in main_win32
generator = find_win32_generator()
File "C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\ffi\build.py", line 76, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File "C:\Users\plain\AppData\Local\Temp\pip-install-zjs7htmt\llvmlite_b03580fed61b446a8bb2d96cef240b16\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "c:\users\plain\appdata\local\programs\python\python39\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\users\plain\appdata\local\programs\python\python39\lib\subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\users\plain\appdata\local\programs\python\python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\users\plain\appdata\local\programs\python\python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
error: command 'c:\\users\\plain\\appdata\\local\\programs\\python\\python39\\python.exe' failed with exit code 1
----------------------------------------
Rolling back uninstall of llvmlite
Moving to c:\users\plain\appdata\local\programs\python\python39\lib\site-packages\llvmlite-0.35.0.dist-info\
from C:\Users\plain\AppData\Local\Programs\Python\Python39\Lib\site-packages\~lvmlite-0.35.0.dist-info
Moving to c:\users\plain\appdata\local\programs\python\python39\lib\site-packages\llvmlite\
from C:\Users\plain\AppData\Local\Programs\Python\Python39\Lib\site-packages\~lvmlite
ERROR: Command errored out with exit status 1: 'c:\users\plain\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\plain\\AppData\\Local\\Temp\\pip-install-zjs7htmt\\llvmlite_b03580fed61b446a8bb2d96cef240b16\\setup.py'"'"'; __file__='"'"'C:\\Users\\plain\\AppData\\Local\\Temp\\pip-install-zjs7htmt\\llvmlite_b03580fed61b446a8bb2d96cef240b16\\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\plain\AppData\Local\Temp\pip-record-54d4suso\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\plain\appdata\local\programs\python\python39\Include\llvmlite' Check the logs for full command output.
Как мне двигаться дальше? Спасибо!
1 ответ
Когда у меня возникают проблемы с установкой модуля, мне очень помогает установка winpip.
pip install winpip
установка winpip (выбираемый модуль)
В большинстве случаев это поможет