我pip安装了plotly,一个用于在python上绘图的模块。当我从终端访问它时,它导入并完美地工作。但是,如果我尝试从IDLE访问它,则会抛出以下错误:
Traceback (most recent call last):
File "<pyshell#13>", line 1
from plotly import plotly
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/plotly/__init__.py", line 31
from plotly import (plotly, dashboard_objs, graph_objs, grid_objs,
tools,
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/plotly/plotly/__init__.py", line 10
from . plotly import (
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/plotly/plotly/plotly.py", line 28
from requests.compat import json as _json
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/requests/__init__.py", line 97
from . import utils
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/requests/utils.py", line 24
from . import certs
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/requests/certs.py", line 15
from certifi import where
ImportError: No module named certifi