我正在使用OS Sierra的mac,我刚刚从python.org下载了python 3.6.1,并在我的桌面上安装了IDLE。在终端上我下载了pip和一堆外部程序,如pandas和matplotlib。然后我在python中创建了一个新文件并将其保存到我的桌面。我导入了datetime并导入了matplotlib.pyplot作为plt并在python shell下运行程序。 shell上的输出是“没有名为'matplotlib.pyplot'的模块; matplotlib'不是包。
我可以更改Python Launcher来改变路径,或者如何将matplotlib模块添加到下载的python IDLE / shell中。