Error python setup.py bdist_wheel did not run successfully

H,

I want to install the ur_rtde package. But I receive this error, does anyone know how can i solve it?

Defaulting to user installation because normal site-packages is not writeable
Collecting ur-rtde
Using cached ur_rtde-1.5.7.tar.gz (2.8 MB)
Preparing metadata (setup.py) … done
Building wheels for collected packages: ur-rtde
Building wheel for ur-rtde (setup.py) … error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
C:\Program Files\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
C:\Program Files\Python311\Lib\site-packages\setuptools_distutils\dist.py:264: UserWarning: Unknown distribution option: ‘build_requires’
warnings.warn(msg)
running bdist_wheel
running build
running build_ext
C:\Users\merit\AppData\Local\Temp\pip-install-jdyob1xu\ur-rtde_08cdabcdc70c458e9e2766a364e2597f\setup.py:39: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
cmake_version = LooseVersion(re.search(r’version\s*([\d.]+)', out.decode()).group(1))
– Building for: NMake Makefiles
CMake Error at CMakeLists.txt:47 (project):
Generator

      NMake Makefiles

    does not support platform specification, but platform

      x64

    was specified.


  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\merit\AppData\Local\Temp\pip-install-jdyob1xu\ur-rtde_08cdabcdc70c458e9e2766a364e2597f\setup.py", line 105, in <module>
      setup(
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
      self.run_command(cmd)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Users\merit\AppData\Roaming\Python\Python311\site-packages\wheel\bdist_wheel.py", line 364, in run
      self.run_command("build")
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
      self.run_command(cmd_name)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Users\merit\AppData\Local\Temp\pip-install-jdyob1xu\ur-rtde_08cdabcdc70c458e9e2766a364e2597f\setup.py", line 44, in run
      self.build_extension(ext)
    File "C:\Users\merit\AppData\Local\Temp\pip-install-jdyob1xu\ur-rtde_08cdabcdc70c458e9e2766a364e2597f\setup.py", line 88, in build_extension
      subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
    File "C:\Program Files\Python311\Lib\subprocess.py", line 413, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\merit\\AppData\\Local\\Temp\\pip-install-jdyob1xu\\ur-rtde_08cdabcdc70c458e9e2766a364e2597f', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\merit\\AppData\\Local\\Temp\\pip-install-jdyob1xu\\ur-rtde_08cdabcdc70c458e9e2766a364e2597f\\build-setuptools\\lib.win-amd64-cpython-311', '-DPYTHON_EXECUTABLE=C:\\Program Files\\Python311\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\merit\\AppData\\Local\\Temp\\pip-install-jdyob1xu\\ur-rtde_08cdabcdc70c458e9e2766a364e2597f\\build-setuptools\\lib.win-amd64-cpython-311', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\merit\\AppData\\Local\\Temp\\pip-install-jdyob1xu\\ur-rtde_08cdabcdc70c458e9e2766a364e2597f\\build-setuptools\\lib.win-amd64-cpython-311', '-DEXAMPLES=OFF', '-A', 'x64', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
  [end of output]

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