在 Jupyter Notebook 上发布安装程序
Issue installing program on Jupyter Notebook
我正在尝试安装一个我需要用于研究的程序,但我 运行 遇到了问题。该程序名为“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,它说在构建轮子时出现错误。
CAMB 包在您python安装中不可用
pip install CAMB
这应该可以解决
我正在尝试安装一个我需要用于研究的程序,但我 运行 遇到了问题。该程序名为“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,它说在构建轮子时出现错误。
CAMB 包在您python安装中不可用
pip install CAMB
这应该可以解决