У меня есть коллега, пытающийся переустановить пакет keras-retin anet после восстановления компьютера. И постоянно получает сообщение об ошибке «ОШИБКА: команда удалена без выхода 1:» (полное сообщение и журнал включены в конце этого поста (извинения за то, как долго)) при выполнении команды «pip install . -user
». Кто-нибудь знает, что может быть причиной этой проблемы?
Запуск python V 3.7.6 (также пытался запустить более новую версию 3.8.2).
Заранее спасибо, дайте мне знать если вам нужны подробности. Полное сообщение об ошибке ниже.
Building wheels for collected packages: keras-retinanet
Building wheel for keras-retinanet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Kelly\\AppData\\Local\\Temp\\pip-req-build-yst_lg4g\\setup.py'"'"'; __file__='"'"'C:\\Users\\Kelly\\AppData\\Local\\Temp\\pip-req-build-yst_lg4g\\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\Kelly\AppData\Local\Temp\pip-wheel-tkiko9wg'
cwd: C:\Users\Kelly\AppData\Local\Temp\pip-req-build-yst_lg4g\
Complete output (10 lines):
running bdist_wheel
running build
running build_py
running build_ext
skipping 'keras_retinanet/utils\compute_overlap.c' Cython extension (up-to-date)
building 'keras_retinanet.utils.compute_overlap' extension
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\ProgramData\Anaconda3\include -IC:\ProgramData\Anaconda3\include -IC:\Users\Kelly\AppData\Roaming\Python\Python37\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include" /Tckeras_retinanet/utils\compute_overlap.c /Fobuild\temp.win-amd64-3.7\Release\keras_retinanet/utils\compute_overlap.obj
compute_overlap.c
C:\ProgramData\Anaconda3\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for keras-retinanet
Running setup.py clean for keras-retinanet
Failed to build keras-retinanet
Installing collected packages: keras-retinanet, keras-preprocessing, keras-applications
Attempting uninstall: keras-retinanet
Found existing installation: keras-retinanet 0.5.1
Uninstalling keras-retinanet-0.5.1:
Successfully uninstalled keras-retinanet-0.5.1
Running setup.py install for keras-retinanet ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Kelly\\AppData\\Local\\Temp\\pip-req-build-yst_lg4g\\setup.py'"'"'; __file__='"'"'C:\\Users\\Kelly\\AppData\\Local\\Temp\\pip-req-build-yst_lg4g\\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\Kelly\AppData\Local\Temp\pip-record-cugf053a\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Kelly\AppData\Roaming\Python\Python37\Include\keras-retinanet'
cwd: C:\Users\Kelly\AppData\Local\Temp\pip-req-build-yst_lg4g\
Complete output (94 lines):
running install
running build
running build_py
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\keras_retinanet
copying keras_retinanet\initializers.py -> build\lib.win-amd64-3.7\keras_retinanet
copying keras_retinanet\losses.py -> build\lib.win-amd64-3.7\keras_retinanet
copying keras_retinanet\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet
creating build\lib.win-amd64-3.7\tests
copying tests\test_losses.py -> build\lib.win-amd64-3.7\tests
copying tests\__init__.py -> build\lib.win-amd64-3.7\tests
creating build\lib.win-amd64-3.7\keras_retinanet\backend
copying keras_retinanet\backend\cntk_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
copying keras_retinanet\backend\common.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
copying keras_retinanet\backend\dynamic.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
copying keras_retinanet\backend\tensorflow_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
copying keras_retinanet\backend\theano_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
copying keras_retinanet\backend\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
creating build\lib.win-amd64-3.7\keras_retinanet\bin
copying keras_retinanet\bin\convert_model.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
copying keras_retinanet\bin\debug.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
copying keras_retinanet\bin\evaluate.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
copying keras_retinanet\bin\train.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
copying keras_retinanet\bin\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
creating build\lib.win-amd64-3.7\keras_retinanet\callbacks
copying keras_retinanet\callbacks\coco.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
copying keras_retinanet\callbacks\common.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
copying keras_retinanet\callbacks\eval.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
copying keras_retinanet\callbacks\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
creating build\lib.win-amd64-3.7\keras_retinanet\layers
copying keras_retinanet\layers\filter_detections.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
copying keras_retinanet\layers\_misc.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
copying keras_retinanet\layers\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
creating build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\densenet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\effnet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\mobilenet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\resnet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\retinanet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\senet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\vgg.py -> build\lib.win-amd64-3.7\keras_retinanet\models
copying keras_retinanet\models\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\models
creating build\lib.win-amd64-3.7\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\coco.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\csv_generator.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\generator.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\kitti.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\open_images.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\pascal_voc.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
creating build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\anchors.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\coco_eval.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\colors.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\config.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\eval.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\gpu.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\image.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\keras_version.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\model.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\tf_version.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\transform.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\visualization.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
copying keras_retinanet\utils\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
creating build\lib.win-amd64-3.7\tests\backend
copying tests\backend\test_common.py -> build\lib.win-amd64-3.7\tests\backend
copying tests\backend\__init__.py -> build\lib.win-amd64-3.7\tests\backend
creating build\lib.win-amd64-3.7\tests\layers
copying tests\layers\test_filter_detections.py -> build\lib.win-amd64-3.7\tests\layers
copying tests\layers\test_misc.py -> build\lib.win-amd64-3.7\tests\layers
copying tests\layers\__init__.py -> build\lib.win-amd64-3.7\tests\layers
creating build\lib.win-amd64-3.7\tests\models
copying tests\models\test_densenet.py -> build\lib.win-amd64-3.7\tests\models
copying tests\models\test_mobilenet.py -> build\lib.win-amd64-3.7\tests\models
copying tests\models\__init__.py -> build\lib.win-amd64-3.7\tests\models
creating build\lib.win-amd64-3.7\tests\preprocessing
copying tests\preprocessing\test_csv_generator.py -> build\lib.win-amd64-3.7\tests\preprocessing
copying tests\preprocessing\test_generator.py -> build\lib.win-amd64-3.7\tests\preprocessing
copying tests\preprocessing\__init__.py -> build\lib.win-amd64-3.7\tests\preprocessing
creating build\lib.win-amd64-3.7\tests\utils
copying tests\utils\test_anchors.py -> build\lib.win-amd64-3.7\tests\utils
copying tests\utils\test_transform.py -> build\lib.win-amd64-3.7\tests\utils
copying tests\utils\__init__.py -> build\lib.win-amd64-3.7\tests\utils
running build_ext
skipping 'keras_retinanet/utils\compute_overlap.c' Cython extension (up-to-date)
building 'keras_retinanet.utils.compute_overlap' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\keras_retinanet
creating build\temp.win-amd64-3.7\Release\keras_retinanet\utils
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\ProgramData\Anaconda3\include -IC:\ProgramData\Anaconda3\include -IC:\Users\Kelly\AppData\Roaming\Python\Python37\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include" /Tckeras_retinanet/utils\compute_overlap.c /Fobuild\temp.win-amd64-3.7\Release\keras_retinanet/utils\compute_overlap.obj
compute_overlap.c
C:\ProgramData\Anaconda3\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Rolling back uninstall of keras-retinanet
Moving to c:\users\kelly\appdata\roaming\python\python37\scripts\retinanet-convert-model.exe
from C:\Users\Kelly\AppData\Local\Temp\pip-uninstall-grfxkn2p\retinanet-convert-model.exe
Moving to c:\users\kelly\appdata\roaming\python\python37\scripts\retinanet-debug.exe
from C:\Users\Kelly\AppData\Local\Temp\pip-uninstall-grfxkn2p\retinanet-debug.exe
Moving to c:\users\kelly\appdata\roaming\python\python37\scripts\retinanet-evaluate.exe
from C:\Users\Kelly\AppData\Local\Temp\pip-uninstall-grfxkn2p\retinanet-evaluate.exe
Moving to c:\users\kelly\appdata\roaming\python\python37\scripts\retinanet-train.exe
from C:\Users\Kelly\AppData\Local\Temp\pip-uninstall-grfxkn2p\retinanet-train.exe
Moving to c:\users\kelly\appdata\roaming\python\python37\site-packages\keras_retinanet-0.5.1.dist-info\
from c:\users\kelly\appdata\roaming\python\python37\site-packages\~eras_retinanet-0.5.1.dist-info
Moving to c:\users\kelly\appdata\roaming\python\python37\site-packages\keras_retinanet\
from c:\users\kelly\appdata\roaming\python\python37\site-packages\~eras_retinanet
Moving to c:\users\kelly\appdata\roaming\python\python37\site-packages\tests\
from c:\users\kelly\appdata\roaming\python\python37\site-packages\~ests
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Kelly\\AppData\\Local\\Temp\\pip-req-build-yst_lg4g\\setup.py'"'"'; __file__='"'"'C:\\Users\\Kelly\\AppData\\Local\\Temp\\pip-req-build-yst_lg4g\\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\Kelly\AppData\Local\Temp\pip-record-cugf053a\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Kelly\AppData\Roaming\Python\Python37\Include\keras-retinanet' Check the logs for full command output.