Search code examples
pythoninstallationjupyter-notebookerror-messaging

Issue installing program on Jupyter Notebook


I am trying to install a program that I need to use for my research, but I am running into issues. The program is called "hmf," and I can sucessfully install it using pip install hmf. However, when I try to import a module, I get an issue: This image shows the error message I get, which is

ImportError: cannot import name 'CAMB' from 'hmf.density_field.transfer_models' (/Users/cammienorton/opt/anaconda3/lib/python3.8/site-packages/hmf/density_field/transfer_models.py)

As per the online suggestion on https://hmf.readthedocs.io/en/latest/installation.html I have tried running

conda install -c conda-forge numpy scipy astropy camb

and I don't get any error messages. Does anyone have any idea what is going on?

UPDATE: I tried pip install CAMB and received the following error message, which says that there was an error while building the wheel.


Solution

  • CAMB package is not available in you python installation

    pip install CAMB
    

    this should fix