无法安装张sornets



我试图安装tensornets以在Windows上运行python项目。但是当我执行"pip install tensornets"时,它显示以下错误。有什么问题吗?

我在Windows 10 (21H1) PC上运行Python 3.8.7

我尝试手动下载tensornets包并运行安装程序,但得到类似的错误。

更新:答案可用-无法打开include file: 'io.h':没有这样的文件或目录

> pip install tensornets
Collecting tensornets
Using cached tensornets-0.4.6.tar.gz (651 kB)
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for tensornets from https://files.pythonhosted.org/packages/71/22/2c9402bbf142b94dc39d8a3c9884690ae87706a8bc1453d6cf0630525173/tensornets-0.4.6.tar.gz#sha256=e1095082b45a06168d56450d8c8fa49780d8aef8d4d1fcc64efceadb743f9ceb.
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Building wheels for collected packages: tensornets
Building wheel for tensornets (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:usersasusappdatalocalprogramspythonpython38python.exe' 'c:usersasusappdatalocalprogramspythonpython38libsite-packagespip_vendorpep517_in_process.py' build_wheel 'C:UsersasusAppDataLocalTemptmp2_xce10z'
cwd: C:UsersasusAppDataLocalTemppip-install-2jm7e__7tensornets_764656aa7ff64ef9bc4f6e22145fe9e5
Complete output (88 lines):
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.8
creating buildlib.win-amd64-3.8tensornets
copying tensornetscapsulenets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsdarknets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsdensenets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsdetections.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsefficientnets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsinceptions.py -> buildlib.win-amd64-3.8tensornets
copying tensornetslayers.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsmiddles.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsmobilenets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsnasnets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsops.py -> buildlib.win-amd64-3.8tensornets
copying tensornetspreprocess.py -> buildlib.win-amd64-3.8tensornets
copying tensornetspretrained.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsresnets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetssqueezenets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetstnets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsunet.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsutils.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsversion_utils.py -> buildlib.win-amd64-3.8tensornets
copying tensornetsvggs.py -> buildlib.win-amd64-3.8tensornets
copying tensornetswavenets.py -> buildlib.win-amd64-3.8tensornets
copying tensornetszf.py -> buildlib.win-amd64-3.8tensornets
copying tensornets__init__.py -> buildlib.win-amd64-3.8tensornets
creating buildlib.win-amd64-3.8tensornetsdatasets
copying tensornetsdatasetscoco.py -> buildlib.win-amd64-3.8tensornetsdatasets
copying tensornetsdatasetsimagenet.py -> buildlib.win-amd64-3.8tensornetsdatasets
copying tensornetsdatasetsvoc.py -> buildlib.win-amd64-3.8tensornetsdatasets
copying tensornetsdatasets__init__.py -> buildlib.win-amd64-3.8tensornetsdatasets
creating buildlib.win-amd64-3.8tensornetscontrib_framework
copying tensornetscontrib_frameworkarg_scope.py -> buildlib.win-amd64-3.8tensornetscontrib_framework
copying tensornetscontrib_frameworkvariables.py -> buildlib.win-amd64-3.8tensornetscontrib_framework
copying tensornetscontrib_framework__init__.py -> buildlib.win-amd64-3.8tensornetscontrib_framework
creating buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layersinitializers.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layerslayers.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layersnormalization.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layersoptimizers.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layersregularizers.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layersrev_block_lib.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layerssummaries.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layersutils.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
copying tensornetscontrib_layers__init__.py -> buildlib.win-amd64-3.8tensornetscontrib_layers
creating buildlib.win-amd64-3.8tensornetsreferences
copying tensornetsreferencesrcnns.py -> buildlib.win-amd64-3.8tensornetsreferences
copying tensornetsreferencesrpn_utils.py -> buildlib.win-amd64-3.8tensornetsreferences
copying tensornetsreferencesyolos.py -> buildlib.win-amd64-3.8tensornetsreferences
copying tensornetsreferencesyolo_utils.py -> buildlib.win-amd64-3.8tensornetsreferences
copying tensornetsreferences__init__.py -> buildlib.win-amd64-3.8tensornetsreferences
creating buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsbox.py -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utils__init__.py -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
running egg_info
writing tensornets.egg-infoPKG-INFO
writing dependency_links to tensornets.egg-infodependency_links.txt
writing top-level names to tensornets.egg-infotop_level.txt
reading manifest file 'tensornets.egg-infoSOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'tensornets.egg-infoSOURCES.txt'
copying tensornetsreferencesdarkflow_utilsget_boxes.c -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsnms.c -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsdatasetscoco.names -> buildlib.win-amd64-3.8tensornetsdatasets
copying tensornetsdatasetsvoc.names -> buildlib.win-amd64-3.8tensornetsdatasets
copying tensornetsreferencescoco.names -> buildlib.win-amd64-3.8tensornetsreferences
copying tensornetsreferencesvoc.names -> buildlib.win-amd64-3.8tensornetsreferences
copying tensornetsreferencesdarkflow_utils__init__.pyc -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsbox.pyc -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsget_boxes.pyx -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsget_boxes.so -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsnms.pxd -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsnms.pyx -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
copying tensornetsreferencesdarkflow_utilsnms.so -> buildlib.win-amd64-3.8tensornetsreferencesdarkflow_utils
running build_ext
building 'tensornets.references.darkflow_utils.nms' extension
creating buildtemp.win-amd64-3.8
creating buildtemp.win-amd64-3.8Release
creating buildtemp.win-amd64-3.8Releasetensornets
creating buildtemp.win-amd64-3.8Releasetensornetsreferences
creating buildtemp.win-amd64-3.8Releasetensornetsreferencesdarkflow_utils
C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.26.28801binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:UsersasusAppDataLocalTemppip-build-env-5ydns0q8overlayLibsite-packagesnumpycoreinclude -Ic:usersasusappdatalocalprogramspythonpython38include -Ic:usersasusappdatalocalprogramspythonpython38include "-IC:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.26.28801include" "-IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum" /Tctensornets/references/darkflow_utils/nms.c /Fobuildtemp.win-amd64-3.8Releasetensornets/references/darkflow_utils/nms.obj
nms.c
c:usersasusappdatalocalprogramspythonpython38includepyconfig.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\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for tensornets
Failed to build tensornets
ERROR: Could not build wheels for tensornets which use PEP 517 and cannot be installed directly
>

使用pip install --upgrade pip setuptools wheel以安装最新版本的wheel

相关内容

  • 没有找到相关文章

最新更新