JuliaPy / JuliaPy/PyPlot.jl

ImportError("No module named 'matplotlib'",)

未关闭
#28 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Julia
星标
488
派生
90
PR 合并指标
30 天内没有已合并 PR

描述

I complied Julia under Archlinux. Successfully added PyPlot package, but failed in loading it:

```
julia> using(PyPlot)
ERROR: PyError (PyImport_ImportModule)
ImportError("No module named 'matplotlib'",)

in pyerr_check at /home/hellolj/.julia/PyCall/src/exception.jl:58
in pyimport at /home/hellolj/.julia/PyCall/src/PyCall.jl:85
in reload_path at loading.jl:146
in _require at loading.jl:59
in require at loading.jl:43
while loading /home/hellolj/.julia/PyPlot/src/PyPlot.jl, in expression starting on line 32
```

I suspect that this error happened because under Arch Linux, ipython 2.7 is named ipython2 insteady of ipython by default on Julia side.

Can anyone help with this issue?

Thanks,

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start at PyPlot/src/PyPlot.jl line 32 and follow the PyCall import path through PyCall/src/PyCall.jl and exception.jl. Reproduce the failure under Arch Linux while checking how Python, IPython, and matplotlib are discovered. Done means the cause of the missing matplotlib import is identified and a working loading path is validated.

由索引模型根据 Issue 内容生成。

评估

技术栈
julia, matplotlib, python
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。