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
James Z
  • 12,209
  • 10
  • 24
  • 44
  • 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 '23 at 07: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. – Suganneshan M May 20 '23 at 07:14
  • Did you reboot after installing the higher version of MS VC++? – Morag Hughson May 20 '23 at 09:06
  • Yes, I had restarted. – Suganneshan M May 20 '23 at 21:20
  • This question might help you: https://stackoverflow.com/questions/73469381/how-can-i-tell-exactly-which-version-of-microsoft-build-tools-i-need-to-install – Morag Hughson May 22 '23 at 06:07

0 Answers0