Skip to content

Installation Failure: Microsoft Visual C++ 14.0 or greater is required (cffi build error on Windows) #1

@minkikar

Description

@minkikar

I encountered a build failure while attempting to install the dependencies for this project on Windows using pip install -r requirements.txt. The installation fails specifically during the compilation of the cffi dependency.

Environment:

OS: Windows 10/11

Python Version: 3.x (check yours with python --version)

Package Version: (The version listed in your requirements.txt)

Collecting cffi==1.15.1 (from -r requirements.txt (line 6))
Using cached cffi-1.15.1.tar.gz (508 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
...
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required.
Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Steps to Reproduce:

Clone the repository.

Create a virtual environment on Windows.

Run pip install -r requirements.txt.

Expected Behavior: The package should install without requiring a full C++ build environment, or the documentation should specify that MSVC Build Tools are a prerequisite for Windows users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions