我已经在anaconda jupyter中显示了我的情节,但是想在我的外壳中显示该图。
在我的shell/iDE中执行图块的代码时会出现问题。
import pandas as pd
import matplotlib.pyplot as plt
我的外壳的输出
Traceback (most recent call last):
File "C:/Users/WIN 10/Desktop/#2019GantiSarjana/Tulis Skripsi/TampilDataParang.py", line 2, in <module>
import matplotlib.pyplot as plt
File "C:UsersWIN 10AppDataRoamingPythonPython37site-packagesmatplotlib__init__.py", line 138, in <module>
from . import cbook, rcsetup
File "C:UsersWIN 10AppDataRoamingPythonPython37site-packagesmatplotlibrcsetup.py", line 24, in <module>
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "C:UsersWIN 10AppDataRoamingPythonPython37site-packagesmatplotlibfontconfig_pattern.py", line 18, in <module>
from pyparsing import (Literal, ZeroOrMore, Optional, Regex, StringEnd,
ModuleNotFoundError: No module named 'pyparsing'
如果您在命令行工具中看到此错误,例如Windows CMD或 Linux终端。按下下面的命令
pip install pyparsing
如果您在IDE中看到此错误(集成开发环境( GUI工具
- 导航到您当前的项目设置或从文件或右键单击项目的配置
- 转到使用的项目解释器
- 在此下,应该安装的软件包列表
- 找到要添加/安装新软件包的按钮,搜索或选择" pyparsing"并安装
然后它应该在IDE中起作用。
jupyter将始终拥有大多数软件包预装
祝你好运!