2017-12-18 212 views
0

我在尝试做“用Python做数学”的第2章时遇到了麻烦。我在Mac上安装了Anaconda和Python 3.6.3(10.13)。我尝试运行第2章中的一个程序,并且我收到一条消息:“没有名为'matplotlib'的模块”。我如何克服这个问题?Python中的图形与“用Python做数学”

+2

解决方案:安装matplotlib – eyllanesc

+0

https://matplotlib.org/2.1.0/users/installing.html –

回答

0

matplotlib不是Python标准库的一部分。您需要手动安装它。这很容易。我建议你按照这个offiical guide。尝试在你的终端应用程序中运行以下命令:

python -mpip install -U pip 
python -mpip install -U matplotlib 
+0

我在终端响应得到这个: [致命Python错误:Py_Initialize:无法加载文件系统编解码器 LookupError:未注册编解码器搜索功能:找不到编码 当前线程0x00007fff89cac340(最近呼叫优先): 中止陷阱:6 –