通过"pip安装eth布朗尼";在vscode终端上,我得到了以下错误:
- 我已经选择了默认的终端CMD
- 我已经尝试安装所需的VS CODE构建工具
请帮忙,谢谢!
错误:
Running setup.py install for cytoolz ... error
ERROR: Command errored out with exit status 1:
command: 'C:UserssimplAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\simpl\AppData\Local\Temp\pip-install-rncdvkky\cytoolz_dc3d86c874b8423fa2581a6b8be8ab33\setup.py'"'"'; __file__='"'"'C:\Users\simpl\AppData\Local\Temp\pip-install-rncdvkky\cytoolz_dc3d86c874b8423fa2581a6b8be8ab33\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UserssimplAppDataLocalTemppip-record-q40t7042install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:UserssimplAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39Includecytoolz'
cwd: C:UserssimplAppDataLocalTemppip-install-rncdvkkycytoolz_dc3d86c874b8423fa2581a6b8be8ab33
Complete output (50 lines):
ALERT: Cython not installed. Building without Cython.
running install
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 cytoolzutils_test.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
building 'cytoolz.dicttoolz' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:UserssimplAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\simpl\AppData\Local\Temp\pip-install-rncdvkky\cytoolz_dc3d86c874b8423fa2581a6b8be8ab33\setup.py'"'"'; __file__='"'"'C:\Users\simpl\AppData\Local\Temp\pip-install-rncdvkky\cytoolz_dc3d86c874b8423fa2581a6b8be8ab33\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UserssimplAppDataLocalTemppip-record-q40t7042install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:UserssimplAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39Includecytoolz' Check the logs for full command output.
您需要安装Microsoft Visual C++14.0或更高版本然后继续,它将工作
即使在安装vs工具后,我也面临同样的错误(https://visualstudio.microsoft.com/visual-cpp-build-tools/)。因此,我找到了conda安装。https://anaconda.org/anaconda/cytoolz