YDLIDAR / YDLidar-SDK

Driver for receiving YD LiDAR data and more...
Other
119 stars 221 forks source link

Unable to install the Python library on Windows 10 #34

Open kefon opened 1 year ago

kefon commented 1 year ago

After following the instruction to install the SDK on Windows 10 (64), everything is working as expected, and I can launch the different examples and .exe files. Now I need to install the Python library, but whatever I try I'm stuck with this error:

error: [Errno 2] No such file or directory: 'build\\temp.win-amd64-3.9\\Release/python/ydlidar.py'

or

 Preparing metadata (setup.py) ... done
Building wheels for collected packages: ydlidar
  Building wheel for ydlidar (setup.py) ... error
  error: subprocess-exited-with-error

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

I tried the two options mentioned:

cd YDLidar-SDK
pip install .

# Another method
python setup.py build
python setup.py install

but no luck. Any idea what's going on and how to fix this? Thanks in advance!