Menu

#212 pip install error on windows

New
nobody
None
Medium
Other
2023-08-17
2023-08-14
No

Building wheel for rpi.gpio (setup.py) ... error
error: subprocess-exited-with-error
I am using my windows desktop with Python 3.11.4 to build out the code for my pulse logger, but when I attempt to pip3 install rpi.gpio I get the following error:

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\RPi
copying RPi__init__.py -> build\lib.win-amd64-cpython-311\RPi
creating build\lib.win-amd64-cpython-311\RPi\GPIO
copying RPi\GPIO__init__.py -> build\lib.win-amd64-cpython-311\RPi\GPIO
running build_ext
building 'RPi._GPIO' 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/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for rpi.gpio
Running setup.py clean for rpi.gpio
Failed to build rpi.gpio
ERROR: Could not build wheels for rpi.gpio, which is required to install pyproject.toml-based projects

Any thing I can do to fix this?

Discussion

  • Justin Lee Pulley

    Here is the screen cap of Visual C++ 14.) or greater installed
    Screenshot-2023-08-14-104631

     

    Last edit: Justin Lee Pulley 2023-08-14
  • Justin Lee Pulley

    I found a 2 year old post that says this library is not able to be compiled on windows.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.