#python #python-3.x #scikit-image
#python #python-3.x #scikit-изображение
Вопрос:
Я не понимаю, почему я получаю эту ошибку при попытке установить ecapture с помощью:
pip install ecapture
Моя система
Python 3.9.1
Windows 10
Журнал ошибок
ERROR: Command errored out with exit status 1:command: 'c:usersadminappdatalocalprogramspythonpython39python.exe' 'c:usersadminappdatalocalprogramspythonpython39libsite-packagespip_vendorpep517_in_process.py' build_wheel 'C:UsersadminAppDataLocalTemptmpk03ol68y' cwd: C:UsersadminAppDataLocalTemppip-install-88owitp7scikit-image_7518c8b47ede4bae8c7c21f2b3149b68
Вывод
Примечание: это только последние несколько строк вывода, поскольку строк слишком много, и они не выдали никаких ошибок.
...
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_ext
building 'skimage._shared.geometry' extension...
compiling C sources...
creating buildtemp.win-amd64-3.9Releaseskimage...
creating buildtemp.win-amd64-3.9Releaseskimage_shared...
building 'skimage._shared.transform' extension...
compiling C sources...
C:UsersadminAppDataLocalTemppip-build-env-wey_lk16overlayLibsite-packagesnumpycoreincludenumpynpy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
skimage_sharedtransform.c(20543): error C2039: 'tp_print': is not a member of '_typeobject'
c:usersadminappdatalocalprogramspythonpython39includecpython/object.h(193): note: see declaration of '_typeobject'
skimage_sharedtransform.c(20548): error C2039: 'tp_print': is not a member of '_typeobject'
c:usersadminappdatalocalprogramspythonpython39includecpython/object.h(193): note: see declaration of '_typeobject'
skimage_sharedtransform.c(20563): error C2039: 'tp_print': is not a member of '_typeobject'
c:usersadminappdatalocalprogramspythonpython39includecpython/object.h(193): note: see declaration of '_typeobject'
skimage_sharedtransform.c(20576): error C2039: 'tp_print': is not a member of '_typeobject'
c:usersadminappdatalocalprogramspythonpython39includecpython/object.h(193): note: see declaration of '_typeobject'
skimage_sharedtransform.c(21715): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
skimage_sharedtransform.c(21731): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
skimage_sharedtransform.c(22091): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
skimage_sharedtransform.c(23039): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
skimage_sharedtransform.c(23045): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
error: Command "C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.28.29333binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:UsersadminAppDataLocalTemppip-build-env-wey_lk16overlayLibsite-packagesnumpycoreinclude -IC:UsersadminAppDataLocalTemppip-build-env-wey_lk16overlayLibsite-packagesnumpycoreinclude -Ic:usersadminappdatalocalprogramspythonpython39include -Ic:usersadminappdatalocalprogramspythonpython39include -IC:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.28.29333include -IC:Program Files (x86)Windows Kits10include10.0.18362.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.18362.0shared -IC:Program Files (x86)Windows Kits10include10.0.18362.0um -IC:Program Files (x86)Windows Kits10include10.0.18362.0winrt -IC:Program Files (x86)Windows Kits10include10.0.18362.0cppwinrt /Tcskimage_sharedtransform.c /Fobuildtemp.win-amd64-3.9Releaseskimage_sharedtransform.obj" failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for scikit-image
Failed to build scikit-image
ERROR: Could not build wheels for scikit-image which use PEP 517 and cannot be installed directly
Ответ №1:
Удалось исправить это, понизив мой python до 3.7.0