This is an old revision of the document!
[How to cite cosmicPAHmfit](https://gitlab.in2p3.fr/ovgso/cosmic-pah/cosmic-pah-mfit/-/blob/main/CITATION.cff)
``` pip install cosmicPAHmfit python3 cosmicPAHmfit
```
-It is recommanded to use a virtual environment copy/paste The pyenv version can be above 3.12 if preferred. (On windows pyenv is not working, proceed to installation of a compatible python (3.12-3.15). A virtual environment is not mandatory.)
``` pyenv install 3.12.3 pyenv virtualenv 3.12.3 venv pyenv activate venv ```
If the previous commands don't work. Install pyenv:
-On Linux To create a pyenv virtualenv for running an other python in a venv run the following blocks (copy/paste);
``` curl https://pyenv.run | bash echo 'export PYENV_ROOT=“$HOME/.pyenv”' » ~/.bashrc echo 'bin && export PATH=“$PYENV_ROOT/bin:$PATH”' » ~/.bashrc echo 'eval “$(pyenv init -)”' » ~/.bashrc exec “$SHELL” sudo apt-get update; sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git echo 'eval “$(pyenv virtualenv-init -)”' » ~/.bashrc
```
-On MAC if the previous install doesn't work copy/paste the following:
``` brew install pyenv-virtualenv export PYENV_ROOT=“$HOME/.pyenv” command -v pyenv >/dev/null || export PATH=“$PYENV_ROOT/bin:$PATH” eval “$(pyenv init –path)” eval “$(pyenv init -)”
```
Run the following line
``` pyenv activate venv; python3 cosmicPAHmfit
```
to exit the pyenv venv you must use:
``` pyenv deactivate
```
If (venv) appears in the terminal, the pyenv venv is running. To run the application you can use directly:
``` python3 cosmicPAHmfit
```