Installation
Python installation
The MEDiml package requires python 3.8 or more to be run. If you don’t have it installed on your machine, follow the instructions here.
Install via pip
MEDimlis available on PyPi for installation viapipwhich allows you to install the package in one step ::pip install mediml
Install from source
In order to install the package using conda, make sure to have Anaconda distribution on your machine, you can download and install it by following the instructions here.
Note
We recommend updating conda before installing the environnement by running
conda update --yes --name base --channel defaults conda
Cloning the repository
git clone https://github.com/MEDomicsLab/MEDiml.git
Access the package folder
cd MEDiml
Using anaconda distribution, we will create and activate the mediml environment. You can do so by simply running
conda env create --name mediml --file environment.yml
Active the installed environment
conda activate mediml
If you want to run the notebooks, you must add your installed environnement to jupyter notebook kernels
python -m ipykernel install --user --name=mediml
Download and install poetry
pip install poetry
More downloading methods can be found here.
Cloning the repository
git clone https://github.com/MEDomicsLab/MEDiml.git
Access the package folder
cd MEDiml
Poetry will automatically create a new environment and download the required dependencies after running
poetry install
The created environment will be activated automatically.
If you wanna run notebooks later, add your installed environnement to jupyter notebook kernels
poetry run python -m ipykernel install --user --name={potry_env_name}
Note
You can use this following command to get information about the currently activated virtual environment
poetry env info
Now that you have successfully installed the package, we invite you to follow these Instructions to further comprehend how to use it.