Page 1 of 1

Problem installing camb on MacOS

Posted: April 27 2020
by Clara Rojas
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

Re: Problem installing camb on MacOS

Posted: April 27 2020
by Antony Lewis
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

Re: Problem installing camb on MacOS

Posted: April 27 2020
by Clara Rojas
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

Re: Problem installing camb on MacOS

Posted: April 27 2020
by Clara Rojas
Dear Antony!

Since the Anaconda graphical environment the file is compiling.

Thanks very much!
Clara