我正试图安装一个程序,我需要使用我的研究,但我遇到了问题。程序名为“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,这表示在构建控制盘时出错
在python安装中,CAMB包不可用
这应该可以解决问题
相关问题 更多 >
编程相关推荐