Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing prerequisites for PyMultiNest #256

Open
jessrawlings98 opened this issue Jul 25, 2024 · 5 comments
Open

Issue installing prerequisites for PyMultiNest #256

jessrawlings98 opened this issue Jul 25, 2024 · 5 comments

Comments

@jessrawlings98
Copy link

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

@JohannesBuchner
Copy link
Owner

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?

@sahiljhawar
Copy link
Contributor

@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

@jessrawlings98
Copy link
Author

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

@JohannesBuchner
Copy link
Owner

don't put a space after the comma.

@jessrawlings98
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants