computer-use-preview
computer-use-preview copied to clipboard
error: subprocess-exited-with-error pip install -r requirements.txt on windows10
Collecting pydantic-core==2.33.2 (from pydantic==2.11.4->-r requirements.txt (line 2)) Downloading pydantic_core-2.33.2.tar.gz (435 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [32 lines of output]
The error you're encountering occurs during the installation of pydantic-core==2.33.2, specifically failing at the metadata preparation stage (pyproject.toml). This issue is typically caused by one of the following reasons:
- Missing Compilation Tools
pydantic-core contains C extensions and requires system-level compilation tools to build successfully. Missing these tools will cause compilation failures.
Linux (Debian/Ubuntu): Install gcc and python3-dev:
bash
sudo apt-get update sudo apt-get install gcc python3-devLinux (CentOS/RHEL): Install gcc and python3-devel: bashsudo yum install gcc python3-develmacOS: Install Xcode Command Line Tools: bashxcode-select --installWindows: Install Microsoft Visual C++ Build Tools (ensure "Desktop development with C++" is checked). - Incompatible Python Version
pydantic-core 2.33.2 requires Python versions ≥ 3.8 and < 3.13. If your Python version is too old or too new, installation will fail.Check your current Python version:
bash
python --version# or python3 --version - Outdated pip
Older pip versions may not support modern package build specifications (e.g., pyproject.toml). Update pip:
bash
pip install --upgrade pip# or pip3 install --upgrade pip - Corrupted Package Cache
The downloaded pydantic-core package may be incomplete or corrupted. Clear the cache and retry:
bash
pip cache purge# Clear all cached packagespip install pydantic-core==2.33.2# Test installing the package alone - Dependency Conflicts Other installed packages may conflict with pydantic-core. Try: Creating a new virtual environment and reinstalling dependencies Checking for incompatibilities between pydantic==2.11.4 and other packages in requirements.txt