Install and Configuration mri_works



1 - Download mri_works
2 - Installation
3 - Launch mri_works
4 - To leave the virtual environment
5 - To install other Python modules
6 - About Matlab engine

1 - Download mri_works

- download the release of mri_works from the github homepage to the 'Download' repertory

- decompress the downloaded file

- go to the unzipped directory where the setup.py file is located
cd ~/Download/mri_works-master
(go to the unzipped directory)


2 - Installation

python3 setup.py
(install venv and create virtual repertory '~/Apps/mri_works_env/')
source ~/.bashrc
(reload .bashrc)
mri_works_update
(install packages in the virtual repertory)

3 - Launch mri_works

- type everywhere:
mri_works

4 - To leave the virtual environment

- When you close mri_works, the virtual environment can sometimes stay active, to stop it, type :
deactivate

5 - To install other Python modules

The installation of Python modules must be done in the virtual environment.
cd ~/Apps/mri_works_env
(go to the new virtual directory)
source bin/activate
(activate the virtual machine)
pip3 install  your package 
(install your package/module)
deactivate
(leave the virtual environnement)

6 - About Matlab engine

- the Matlab engine install must be done in the virtual environment :
cd ~/Apps/mri_works_env
source bin/activate
- go to the directory where the setup.py file is located :
cd /usr/local/MATLAB/R2020a/extern/engines/python
- launch the setup :
python3 setup.py build --build-base ~/Apps/mri_works_env/build install
exit