computer-use-preview icon indicating copy to clipboard operation
computer-use-preview copied to clipboard

error: subprocess-exited-with-error pip install -r requirements.txt on windows10

Open glorivuer opened this issue 2 months ago • 1 comments

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]

glorivuer avatar Oct 08 '25 01:10 glorivuer

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:

  1. 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-dev Linux (CentOS/RHEL): Install gcc and python3-devel: bash sudo yum install gcc python3-devel macOS: Install Xcode Command Line Tools: bash xcode-select --install Windows: Install Microsoft Visual C++ Build Tools (ensure "Desktop development with C++" is checked).
  2. 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
  3. 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
  4. 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 packages pip install pydantic-core==2.33.2 # Test installing the package alone
  5. 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

NJX-njx avatar Oct 16 '25 12:10 NJX-njx