在Jupyter笔记本上发布安装程序

2024-06-01 09:33:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图安装一个程序,我需要使用我的研究,但我遇到了问题。程序名为“hmf”,我可以使用pip install hmf成功地安装它。然而,当我尝试导入一个模块时,我遇到了一个问题:This image shows the error message I get,这是

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)

根据网上关于https://hmf.readthedocs.io/en/latest/installation.html的建议,我已经试着跑步了

conda install -c conda-forge numpy scipy astropy camb

我没有收到任何错误消息。有人知道发生了什么事吗

更新:我尝试了pip install CAMB并收到了following error message,这表示在构建控制盘时出错


Tags: 模块installpip程序fieldmessagemodelserror