You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows 10系统下安装eth-brownie时cytoolz编译失败的解决求助

Fixing cytoolz Installation Error When Installing eth-brownie on Windows 10

Hey there, let's get past this cytoolz installation roadblock so you can set up eth-brownie successfully! The core issue here is that even though you installed VS Code build tools, the required C++ compiler components are either missing or not properly configured.

Let's walk through the solutions step by step:

1. Ensure You Have the Correct Visual C++ Build Tools Components

The error clearly states error: Microsoft Visual C++ 14.0 or greater is required. — here's how to make sure you have the right setup:

  • Open the Visual Studio Installer (if you don't have it, grab the C++ Build Tools package first)
  • Locate your existing installation and click Modify
  • Make sure the Desktop development with C++ workload is fully checked (this includes the MSVC compiler, Windows SDK, and other necessary build components)
  • Click Modify to install the missing components, then restart your computer to apply changes

2. Install cytoolz Using Precompiled Wheel Packages (Avoid Compilation)

Compiling cytoolz from source on Windows often causes headaches. Instead, use prebuilt binary packages:

  • First, upgrade pip to ensure it can handle wheel packages properly:
    python -m pip install --upgrade pip
    
  • Install cytoolz using only precompiled binaries:
    pip install cytoolz --only-binary :all:
    
  • Once cytoolz installs successfully, run the eth-brownie installation again:
    pip install eth-brownie
    

3. Check Your Python Installation (Microsoft Store Version Quirks)

Notice your Python path includes PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 — this is the Microsoft Store version of Python, which can sometimes have permission or path conflicts with build tools. If the above steps don't work:

  • Download the official Python installer from the Python website (not the Microsoft Store)
  • When installing, make sure to check the Add Python to PATH option
  • Uninstall the Microsoft Store Python version, then repeat the eth-brownie installation steps with the official Python build

Your Original Error Log for Reference

Running setup.py install for cytoolz ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\simpl\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.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("\r\n", "\n");f.close();exec(compile(code, file, "exec"))' install --record 'C:\Users\simpl\AppData\Local\Temp\pip-record-q40t7042\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\\Users\\simpl\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\Include\\cytoolz'
cwd: C:\Users\simpl\AppData\Local\Temp\pip-install-rncdvkky\cytoolz_dc3d86c874b8423fa2581a6b8be8ab33\
Complete output (50 lines):
ALERT: Cython not installed. Building without Cython.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\cytoolz
copying cytoolz\compatibility.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\utils_test.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\_signatures.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\_version.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\init.py -> build\lib.win-amd64-3.9\cytoolz
creating build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\curried\exceptions.py -> build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\curried\operator.py -> build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\curried\init.py -> build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\dicttoolz.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\functoolz.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\itertoolz.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\recipes.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\utils.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\cpython.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\dicttoolz.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\functoolz.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\itertoolz.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\recipes.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\utils.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\init.pxd -> build\lib.win-amd64-3.9\cytoolz
creating build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\dev_skip_test.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_compatibility.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_curried.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_curried_toolzlike.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_dev_skip_test.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_dicttoolz.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_docstrings.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_doctests.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_embedded_sigs.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_functoolz.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_inspect_args.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_itertoolz.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_none_safe.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_recipes.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_serialization.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_signatures.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_tlz.py -> build\lib.win-amd64-3.9\cytoolz\tests
copying cytoolz\tests\test_utils.py -> build\lib.win-amd64-3.9\cytoolz\tests
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:\Users\simpl\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.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("\r\n", "\n");f.close();exec(compile(code, file, "exec"))' install --record 'C:\Users\simpl\AppData\Local\Temp\pip-record-q40t7042\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\\Users\\simpl\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\Include\\cytoolz'
Check the logs for full command output.

内容的提问来源于stack exchange,提问作者Arlo Blanco

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 21:33:12