In few easy steps
Make sure you have Python 3.7 or higher installed on Mac or Linux
If Python 3.7 is not available on your computer, don’t despair! You can use pyenv (the easiest way to install it is with the pyenv installer) to install any Python version, or you can use Anaconda, even though the latter is not recomended if you plan on using MPI.
Windows is not natively supported because Jax does not yet support it. However, if you use WSL (Windows Subsystem for Linux) NetKet will run smoothly.
If you plan to use MPI, make sure you have an up to date version of the mpicc compilers available on your path.
When using MPI, we recommend not to use Anaconda unless it’s for small experimentation on a laptop. This is due to a dependency of netket, mpi4jax. You can read more about the limitations on the mpi4jax documentation.
pip install --pre netket
Conda is not currently supported. However you can use a conda environment and install netket with pip inside this environment.
Be mindfull that this will install the latest 3.0 beta version. If you prefer to keep using the old stable versions, remove the
--pre directive. Eventually we will release the stable 3.0, but we need your help in order to test it!
If you want to use MPI, use
pip install --pre netket[mpi].
If you want to develop netket, extra development dependencies are installed by running
pip install --pre netket[all,dev]