安装web3py时出现问题



安装web3py时遇到以下错误:

Running setup.py install for cytoolz ... error
ERROR: Command errored out with exit status 1:
command: 'D:SoftwareEnvironmentPython3.9.9python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ROG\AppData\Local\Temp\pip-install-eeqwacua\cytoolz_7064e08653b9422cbd2203110a2138b4\setup.py'"'"'; __file__='"'"'C:\Users\ROG\AppData\Local\Temp\pip-install-eeqwacua\cytoolz_7064e08653b9422cbd2203110a2138b4\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersROGAppDataLocalTemppip-record-smsq3qy1install-record.txt' --single-version-externally-managed --compile --install-headers 'D:SoftwareEnvironmentPython3.9.9Includecytoolz'
cwd: C:UsersROGAppDataLocalTemppip-install-eeqwacuacytoolz_7064e08653b9422cbd2203110a2138b4
Complete output (56 lines):
ALERT: Cython not installed.  Building without Cython.
running install
D:SoftwareEnvironmentPython3.9.9libsite-packagessetuptoolscommandinstall.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9cytoolz
copying cytoolzcompatibility.py -> buildlib.win-amd64-3.9cytoolz
copying cytoolz_signatures.py -> buildlib.win-amd64-3.9cytoolz
copying cytoolz_version.py -> buildlib.win-amd64-3.9cytoolz
copying cytoolz__init__.py -> buildlib.win-amd64-3.9cytoolz
creating buildlib.win-amd64-3.9cytoolzcurried
copying cytoolzcurriedexceptions.py -> buildlib.win-amd64-3.9cytoolzcurried
copying cytoolzcurriedoperator.py -> buildlib.win-amd64-3.9cytoolzcurried
copying cytoolzcurried__init__.py -> buildlib.win-amd64-3.9cytoolzcurried
copying cytoolzdicttoolz.pyx -> buildlib.win-amd64-3.9cytoolz
copying cytoolzfunctoolz.pyx -> buildlib.win-amd64-3.9cytoolz
copying cytoolzitertoolz.pyx -> buildlib.win-amd64-3.9cytoolz
copying cytoolzrecipes.pyx -> buildlib.win-amd64-3.9cytoolz
copying cytoolzutils.pyx -> buildlib.win-amd64-3.9cytoolz
copying cytoolzcpython.pxd -> buildlib.win-amd64-3.9cytoolz
copying cytoolzdicttoolz.pxd -> buildlib.win-amd64-3.9cytoolz
copying cytoolzfunctoolz.pxd -> buildlib.win-amd64-3.9cytoolz
copying cytoolzitertoolz.pxd -> buildlib.win-amd64-3.9cytoolz
copying cytoolzrecipes.pxd -> buildlib.win-amd64-3.9cytoolz
copying cytoolzutils.pxd -> buildlib.win-amd64-3.9cytoolz
copying cytoolz__init__.pxd -> buildlib.win-amd64-3.9cytoolz
creating buildlib.win-amd64-3.9cytoolztests
copying cytoolztestsdev_skip_test.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_compatibility.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_curried.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_curried_toolzlike.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_dev_skip_test.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_dicttoolz.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_docstrings.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_doctests.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_embedded_sigs.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_functoolz.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_inspect_args.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_itertoolz.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_none_safe.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_recipes.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_serialization.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_signatures.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_tlz.py -> buildlib.win-amd64-3.9cytoolztests
copying cytoolzteststest_utils.py -> buildlib.win-amd64-3.9cytoolztests
running build_ext
creating buildtemp.win-amd64-3.9
creating buildtemp.win-amd64-3.9Release
creating buildtemp.win-amd64-3.9Releasecytoolz
"C:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.30.30705binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:SoftwareEnvironmentPython3.9.9include -ID:SoftwareEnvironmentPython3.9.9include "-IC:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.30.30705ATLMFCinclude" "-IC:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.30.30705include" /Tccytoolz/dicttoolz.c /Fobuildtemp.win-amd64-3.9Releasecytoolz/dicttoolz.obj
dicttoolz.c
D:SoftwareEnvironmentPython3.9.9includepyconfig.h(59): fatal error C1083: Can not open file include: “io.h”: No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:SoftwareEnvironmentPython3.9.9python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ROG\AppData\Local\Temp\pip-install-eeqwacua\cytoolz_7064e08653b9422cbd2203110a2138b4\setup.py'"'"'; __file__='"'"'C:\Users\ROG\AppData\Local\Temp\pip-install-eeqwacua\cytoolz_7064e08653b9422cbd2203110a2138b4\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersROGAppDataLocalTemppip-record-smsq3qy1install-record.txt' --single-version-externally-managed --compile --install-headers 'D:SoftwareEnvironmentPython3.9.9Includecytoolz' Check the logs for full command output.

导致此错误的原因有很多。最常见的原因是

  • 指定的文件名不正确
  • 包含搜索路径中不存在该文件
  • 文件可能已锁定或正在使用

如果这些问题似乎都不适用于您的情况,则文件可能在您的项目中,但不包括搜索路径

最新更新