Installation Tutorial for Windows
August 25, 2023 ยท View on GitHub
The following is a more detailed description of the installation process of BanditPAM for Windows.
Prerequisites
Please ensure the following dependencies are installed:
- Visual Studio (2022 is recommended) with "Desktop development with C++" workload: via the Visual Studio download page
- The Armadillo library: via
git clone https://gitlab.com/conradsnicta/armadillo-code.git armadilloin theheadersdirectory - CARMA: via the instructions in its guide
- Python3: if not installed, we recommend installing Python3 via Anaconda
pipfor your Python3 installation: this should be completed if installing via Anaconda above- The necessary python packages: via
python -m pip install -r requirements.txt
BanditPAM Installation
CMake Build:
- Run
cd scriptsand thensh retrieve_windows_cmake_files.shto retrieve the files necessary for the Windows CMake build - Add the Visual Studio IDE location to PATH in Environment Variables (e.g.
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE). - Add
${project_dir}\headers\armadillo\examples\lib_win64to PATH - Run
devenv BanditPAM.sln /Build "Release|x64"aftercmake ..in a prompt other than Git Bash - The
.exewill be located inbuild/src/Release
Python Build:
- Run
python -m pip install banditpam, OR - Follow these steps:
- Add the location of
cl.exeto PATH in Environment Variables (e.g.C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64). - Run
python -m pip install .in the home directory (/BanditPAM) - Run
cd scripts && sh retrieve_windows_python_files.sh && cd .. - Run
python -m pip install .in the home directory (/BanditPAM)
- Add the location of