0

when trying to install Pymqi packages using pip. I'm getting this error.

Error Screenshot

 Collecting pymqi
      Using cached pymqi-1.12.10.tar.gz (91 kB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Building wheels for collected packages: pymqi
      Building wheel for pymqi (pyproject.toml) ... error
      error: subprocess-exited-with-error
    
      × Building wheel for pymqi (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [17 lines of output]
          Building PyMQI client mode 64bits
          Using library_dirs:`['C:\\Program Files\\IBM\\MQ\\tools\\Lib64', 'c:\\Program Files (x86)\\IBM\\WebSphere MQ\\tools\\Lib64']`, include:`['C:\\Program Files\\IBM\\MQ\\tools\\c\\include', 'c:\\Program Files (x86)\\IBM\\WebSphere MQ\\tools\\c\\include']`, libraries:`['mqic']`
          running bdist_wheel
          running build
          running build_py
          creating build
          creating build\lib.win-amd64-cpython-310
          creating build\lib.win-amd64-cpython-310\pymqi
          copying code\pymqi\__init__.py -> build\lib.win-amd64-cpython-310\pymqi
          copying code\pymqi\CMQC.py -> build\lib.win-amd64-cpython-310\pymqi
          copying code\pymqi\CMQCFC.py -> build\lib.win-amd64-cpython-310\pymqi
          copying code\pymqi\CMQXC.py -> build\lib.win-amd64-cpython-310\pymqi
          copying code\pymqi\CMQZC.py -> build\lib.win-amd64-cpython-310\pymqi
          copying code\pymqi\const.py -> build\lib.win-amd64-cpython-310\pymqi
          running build_ext
          building 'pymqi.pymqe' 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 pymqi
    Failed to build pymqi
    ERROR: Could not build wheels for pymqi, which is required to install pyproject.toml-based projects
5
  • 1
    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/ - have you already tried installing these tools?
    – jordanm
    May 20 at 7:08
  • The microsoft visual C++ is alread installed in my system with the higher version of the (14.24). after that also I'm facing this error. May 20 at 7:14
  • Did you reboot after installing the higher version of MS VC++? May 20 at 9:06
  • Yes, I had restarted. May 20 at 21:20
  • This question might help you: stackoverflow.com/questions/73469381/… May 22 at 6:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.