I'm happily running ARTIQ8 on Windows using MSYS2, but unfortunately I am unable to easily install the python packages that I need from time to time. Say I want to use the python package statsmodels.
So I run pacman -Ss statsmodels, I find 0.14.6-2 is the latest, and I install it with this:
pacman -S mingw-w64-clang-x86_64-python-statsmodels
But now, when I run python from within an MSYS2 CLANG shell, it still can't find statsmodels, nor can python code in my repository. Why? because statsmodels has been installed within the python 3.13 environment. I can verify this by querying the install directory of an installed package:
pacman -Ql mingw-w64-clang-x86_64-python-statsmodels
Returns lots of files in this directory and subdirectories: /clang64/lib/python3.13/site-packages/statsmodels/*
Now I can try using pacman to directly install an older package that I download myself from https://archive.archlinux.org/packages/p/python-statsmodels/, maybe the last release before python 3.13 was relased in october 2024.
I can do this with:
pacman -U C:/Users/Ions/Downloads/python-statsmodels-0.14.2-1-x86_64.pkg.tar.zst
But now the package doesn't install as mingw-w64-clang-x86_64-python-statsmodels, it only installs as python-statsmodels. As such, it doesn't see mingw-w64-clang-x86_64-python-numpy or its other dependencies, nor is it available to ARTIQ code or the python 3.12 interpreter that I can launch from within my MSYS2 CLANG shell.
So what gives? Do I actually have a way to install packages or not? One hack is to just copy them into C:\msys64\clang64\lib\python3.12\site-packages directly, but this starts to get crazy for things with even a moderate number of dependencies.
Many thanks for any suggestions!