If you just want to check out pyLife's demos, you can use the our notebooks at mybinder. We will add new notebooks as soon as we have new functionality.
You need a python installation e.g. a virtual environment with pip
a recent
(brand new ones might not work) python versions installed. There are several
ways to achieve that.
Install miniconda or anaconda on your computer and create a virtual environment with python installed. See the conda documentation on how to do that. The newly created environment must be activated.
The following command lines should do it
conda create -n pylife-env python=3.12 --yes
conda activate pylife-env
Setup a python virtual environment containing pip according to these instructions and activate it.
That's not recommended. If you really want to do that, you probably know how to do it.
The simplest way to install pyLife is just using the pip package
pip install pylife[all]
That installs pyLife with all the dependencies to use pyLife in python
programs. You might want to install some further packages like jupyter
in
order to work with jupyter notebooks.
There is no conda package as of now, unfortunately.
For general contribution guidelines please read CONTRIBUTING.md
Depending on your tools. From the command line
git clone https://github.com/boschresearch/pylife.git
will do it.
Install anaconda or miniconda [http://anaconda.com]. Create an anaconda environment with all the requirements by running
Create an environment – usually a good idea to use a prefixed environment in your pyLife working directory and activate it.
conda create -p .venv python=3.12 pip --yes
conda activate ./.venv
Then install the pyLife into that environment.
pip install -e .[testing,all]
You can run the test suite by the command
pytest
If it creates an output ending like below, the installation was successful.
================ 1171 passed, 7 skipped, 6 deselected, 3 warnings in 23.06s ===============
There might be some DeprecationWarning
s. Ignore them for now.