Installation#
Create a conda environment#
Use a conda environment
We recommend you install movement inside a conda
or mamba environment, to avoid dependency conflicts with other packages.
In the following we assume you have conda
installed,
but the same commands will also work with mamba
/micromamba
.
First, create and activate an environment with some prerequisites.
You can call your environment whatever you like, we’ve used movement-env
.
conda create -n movement-env -c conda-forge python=3.10 pytables
conda activate movement-env
Install the package#
Then install the movement
package as described below.
To get the latest release from PyPI:
pip install movement
If you have an older version of movement
installed in the same environment,
you can update to the latest version with:
pip install --upgrade movement
To get the latest development version, clone the GitHub repository and then run from inside the repository:
pip install -e .[dev] # works on most shells
pip install -e '.[dev]' # works on zsh (the default shell on macOS)
This will install the package in editable mode, including all dev
dependencies.
Please see the contributing guide for more information.
Check the installation#
To verify that the installation was successful, you can run the following
command (with the movement-env
activated):
movement info
You should see a printout including the version numbers of movement
and some of its dependencies.