我已使用以下命令成功安装了ggplot和brewer2mpl:
conda install -c https://conda.binstar.org/bokeh ggplot
然而,当我尝试使用以下命令将ggplot导入Spyder时:
from ggplot import *
我收到以下错误消息:
File "<ipython-input-107-02aeb6e281ab>", line 1, in <module>
from ggplot import *
File "C:\Users\Alexandros_7\Anaconda3\lib\site-packages\ggplot\__init__.py", line 34, in <module>
from .scales.scale_color_brewer import scale_color_brewer
File "C:\Users\Alexandros_7\Anaconda3\lib\site-packages\ggplot\scales\scale_color_brewer.py", line 5, in <module>
import brewer2mpl
ImportError: No module named 'brewer2mpl'
你可以帮帮我吗?谢谢!