pimoroni / vl53l1x-python

Python library for the VL53L1X Laser Ranger
https://shop.pimoroni.com/products/vl53l1x-breakout
95 stars 53 forks source link

Can't install library in Windows #46

Closed JosebaMG closed 3 years ago

JosebaMG commented 3 years ago

Hi.

I'm trying to install vl53l1x-python library in Windows, as I use PyCharm and want to connect VL53L1X sensor to an Xbee 3 module, and program it to know whether someone enters a room or exits it, and send this data to a Coordinator module.

The problem is that I cannot install this library: it first gives me an error telling me pthreads.h cannot be found, when I install pthreads for win32 it tells me getopt.h cannot be found, and when I add a getopt.h file I found in Internet (for Windows) to the include folder of Visual Studio MSVC it gives me a link error. Does anyone know any solution to this? If not, would installing a Linux (Ubuntu, for example) partition and developing what I said in that partition help?

Thanks in advance.

JosebaMG commented 3 years ago

Okay, I achieved to install the library. For anyone that can find the answer helpful, I just created a bootable Ubuntu usb and tried installing the library to check if it could be installed. After some depedencies installation, it worked perfectly.