Post Go back to editing

libm2k 0.6.0 installation for python on win10

I have tried to install libm2k on windows10 with the installer (libm2k-0.6.0-Windows-setup.exe) at https://github.com/analogdevicesinc/libm2k/releases/tag/v0.6.0

However, libm2k seems not to bind python 3.8.5 that I have already installed on my PC.
After finished setup.exe, I couldn't find libm2k package in pip list. So 'import libmk2' doesn't work.

Any other action is needed except for running setup.exe?
Is it related to libm2k-win32-win64.zip stuff that is not appeared in previous versions?

The corresponding wiki is here as reference:
https://wiki.analog.com/university/tools/m2k/libm2k/libm2k?force_rev=1

Thanks

  • Hi,

    Starting with release 0.6.0 the Python bindings were removed from the official Windows installer. The official installer will now install only the base libm2k library and other necessary binaries. The python bindings should now be installed separately, based on OS and Python version.
    In the release artifacts there is a new archive called libm2k-0.6.0-python-wheels.zip .
    This archive includes wheel packages (.whl - these are packages for pip) for all the possible combinations of operating systems and supported Python versions.

    For the case you described above you would need the libm2k-0.6.0-cp38-cp38-win_amd64.whl file. In order to install this you need to run:

    python3 -m pip install libm2k-0.6.0-cp38-cp38-win_amd64.whl



    One other option would be to use the binaries uploaded to test.pypi. You can use the following :
    pip install -i https://test.pypi.org/simple/ libm2k

    This will detect your OS version and Python version and install the appropriate libm2k version.

    I am working on updating the Wiki instructions on building and installing libm2k and Python bindings on all platforms.

    Thank you!
    -Alexandra

  • Hi Alexandra,

    Great! The first manual installation command makes it work correctly.
    Thank you!

    Ipce