Python 3.x 无法将ggplot导入到我的python代码中

Python 3.x 无法将ggplot导入到我的python代码中,python-3.x,python-ggplot,Python 3.x,Python Ggplot,我正在尝试将ggplot导入到我的项目中,但每次运行代码时,我都会得到以下导入结果: 听起来可能很傻,但是。。。您是否尝试导入ggplot模块 from ggplot import * 使用pip冻结检查pip的状态时会发生什么?它在里面吗?你在用pip来编写python 2吗?运行pip-V并检查它是否使用Python3.x.dshepherd——我使用的是Python3.4。Anto-我运行了pip freeze,我可以在列表中看到ggplot 0.5.8。不知道为什么我仍然无法将ggpl

我正在尝试将ggplot导入到我的项目中,但每次运行代码时,我都会得到以下导入结果:


听起来可能很傻,但是。。。您是否尝试导入ggplot模块

from ggplot import *

使用pip冻结检查pip的状态时会发生什么?它在里面吗?你在用pip来编写python 2吗?运行pip-V并检查它是否使用Python3.x.dshepherd——我使用的是Python3.4。Anto-我运行了pip freeze,我可以在列表中看到ggplot 0.5.8。不知道为什么我仍然无法将ggplot导入到我的项目中;printsys.path并查看是否在任何路径中导入了ggplot。感谢Jan。尝试了该操作,但对ggplot一无所知。
def lineplot(hr_year_csv):
    data = pd.read_csv(hr_year_csv)
    gg = ggplot(data, aes('yearID', 'HR')) + geom_point(color='red') + geom_line(color='red') + ggtitle('title') + xlab('yeadID') + ylab('HR')
    print (gg)

lineplot('hr_year.csv')
from ggplot import *