PyMultiNest icon indicating copy to clipboard operation
PyMultiNest copied to clipboard

Issue installing prerequisites for PyMultiNest

Open jessrawlings98 opened this issue 1 year ago • 5 comments

Hi,

I am quite new to Python and I am trying to install the prerequisites for PyMultiNest, I am using an Ubuntu virtual machine on Windows PC. I have already installed the Python module.

I have tried using the following code:

sudo apt-get install python-{scipy,numpy,matplotlib,progressbar} ipython libblas{3,-dev} liblapack{3,-dev} libatlas{3-base,-dev} cmake build-essential git gfortran

But I am getting the following errors: Attempting step 2 of installing pymultinest

If you have any advice of how to fix my issue it would be much appreciated.

Thank you

jessrawlings98 avatar Jul 25 '24 09:07 jessrawlings98

use apt search to find packages. In current python 3 they are probably starting with e.g. python3-scipy. It would be good to update the instructions, can you suggest changes once you manage to install?

JohannesBuchner avatar Jul 25 '24 14:07 JohannesBuchner

@jessrawlings98 I would recommend to use virtual env (conda, mamba, etc) for Python package installation. For linux dependencies use the following sudo apt-get libblas{3,-dev} liblapack{3,-dev} libatlas-base-dev cmake build-essential git gfortran (this from test.yml). ipython is available via pip

sahiljhawar avatar Jul 26 '24 22:07 sahiljhawar

use apt search to find packages. In current python 3 they are probably starting with e.g. python3-scipy. It would be good to update the instructions, can you suggest changes once you manage to install?

Hi Johannes,

Thank you very much for your suggestion. After using apt search it appears the packages are starting with python3 as you suggested. However I am now getting a different error message when I try entering the code in my terminal, see the screenshot below. Do you know what this error message means? Installing_prerequisites_pymultinest_error2 Thank you

jessrawlings98 avatar Aug 06 '24 07:08 jessrawlings98

don't put a space after the comma.

JohannesBuchner avatar Aug 06 '24 08:08 JohannesBuchner

Hi Johannes,

I have now managed to install the prerequisites for PyMultiNest. Note, as well as changing python to python3, I had to change ipython to ipython3.

Thanks again for your help

jessrawlings98 avatar Aug 08 '24 09:08 jessrawlings98