Problem installing camb on MacOS

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Clara Rojas
Posts: 15
Joined: May 11 2005
Affiliation: Yachay TECH University

Problem installing camb on MacOS

Post by Clara Rojas » April 27 2020

Hello!

I need your help. I am an new Anaconda user and, I am trying to install camb with the command:

conda install -c conda-forge camb

But when I run the command camb inifiles/planck_2018.ini I obtained the error: -bash: camb: command not found

And, if I run the command python camb.py inifiles/planck_2018.ini I obtained the error:

/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'camb.py': [Errno 2] No such file or directory

Can you help me?

Thanks,
Clara

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Problem installing camb on MacOS

Post by Antony Lewis » April 27 2020

The second one looks like you haven't activated the conda environment or not using anaconda prompt (running Mac default old Python 2.7).

For the first one maybe try starting over with a clean conda python 3.7 environment. eg.

Code: Select all

conda create -n py37forge -c conda-forge python=3.7 scipy camb

Clara Rojas
Posts: 15
Joined: May 11 2005
Affiliation: Yachay TECH University

Re: Problem installing camb on MacOS

Post by Clara Rojas » April 27 2020

Thanks very much!

I have created the clean environment and now I have the error:

File not found: inifiles/planck_2018.ini

Best regards,
Clara

Clara Rojas
Posts: 15
Joined: May 11 2005
Affiliation: Yachay TECH University

Re: Problem installing camb on MacOS

Post by Clara Rojas » April 27 2020

Dear Antony!

Since the Anaconda graphical environment the file is compiling.

Thanks very much!
Clara

Post Reply