【发布时间】:2018-10-09 21:16:43
【问题描述】:
我正在处理这个tutorial。
只有一行如下:
from getdist import plots, MCSamples
但是python发送错误:
ImportError: cannot import name plots
我该怎么办?我需要它,但它会发送此错误。
谢谢。
【问题讨论】:
-
在学习本教程之前,您是否安装了 getdist 模块?
-
@CristiFati 是的,他们在网站的介绍中使用
sudo pip install getdist。我给:Requirement already satisfied: getdist in /usr/local/lib/python2.7/dist-packages
标签: python python-2.7 compiler-errors importerror