Installation#
If you’re new to Python, we recommend using Anaconda to install Python on your machine. You can then manage packages from the terminal using conda.
To create a new conda environment for StratMC, run:
conda create --name stratmc_env
Before installing StratMC, activate the new environment and install pip:
conda activate stratmc_env
conda install pip
You can then install StratMC and its dependencies using pip (note that the --pre flag is required to install the current version, which is a pre-release), or by compiling directly from the GitHub repository:
PIP#
pip install stratmc --pre
Latest (unstable)#
pip install git+https://github.com/sedmonsond/stratmc
Installing on Apple Silicon#
On Apple Silicon machines (M1 chip or later), sampling is significantly faster when the Apple Accelerate BLAS library is used, rather than the default OpenBLAS library. After installing StratMC in a new conda environment, run:
conda install -c conda-forge numpy">=1.17.0,<2" "libblas=*=*accelerate"