CAMB on Mac

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
CaixiaSkye Gao
Posts: 3
Joined: September 08 2019
Affiliation: Colorado State University-Pueblo

CAMB on Mac

Post by CaixiaSkye Gao » April 10 2020

Dear All,

I installed Anaconda and tried to install camb:

conda install -c conda-forge camb

But failed. Attached please find the error code. Could you tell me how to solve this problem?

Thank you,
Caixia
Attachments
Screen Shot 2020-04-09 at 12.27.52 AM.png
Screen Shot 2020-04-09 at 12.27.52 AM.png (190.9 KiB) Viewed 1608 times

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

Re: CAMB on Mac

Post by Antony Lewis » April 10 2020

I find anacomda often gets into an inconsistent state. I'd make a new clean environment, e.g. using

Code: Select all

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

CaixiaSkye Gao
Posts: 3
Joined: September 08 2019
Affiliation: Colorado State University-Pueblo

Re: CAMB on Mac

Post by CaixiaSkye Gao » April 11 2020

Thank you Dr. Lewis. That is very helpful. We did successfully installed the program.
When I run the example on Jupyter, It says there is no module camb found.

Caixia Gao
Attachments
canbmMac.png
canbmMac.png (359.29 KiB) Viewed 1596 times

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

Re: CAMB on Mac

Post by Antony Lewis » April 11 2020

Make sure you are running the notebook in the right virtual env.

CaixiaSkye Gao
Posts: 3
Joined: September 08 2019
Affiliation: Colorado State University-Pueblo

Re: CAMB on Mac

Post by CaixiaSkye Gao » April 18 2020

Yes, that is actually the case. CAMB was installed on a new environment py37forge, instead of the root. Then we tried to launch jupyter notebook in this environment, however, Jupyter notebook can not be installed in py37forge.
Attachments
py37.png
py37.png (212.28 KiB) Viewed 1547 times
Screen Shot 2020-04-16 at 4.53.05 PM (1).png
Screen Shot 2020-04-16 at 4.53.05 PM (1).png (66.56 KiB) Viewed 1548 times

Post Reply