Closed briochemc closed 5 years ago
I think the problem was I somehow corrupted PyCall's python installation, so nuking .julia/conda
and rebuilding PyCall from scractch worked. Closing because I don't think this is an issue but rather more of a rare case of "I messed up my environment somehow". But in case this last-resort advice could be useful for others, here is what I did (could maybe go in the readme's troubleshooting?)
Remove PyCall's conda target entirely
$ rm -r .julia/conda
Then in julia remove it all and rebuild PyCall
(v1.1) pkg> rm PyPlot
(v1.1) pkg> rm Conda
(v1.1) pkg> rm PyCall
(v1.1) pkg> add PyCall
julia> ENV["PYTHON"] = ""
(v1.1) pkg> build PyCall
julia> exit()
Then restarting julia to use PyCall and PyPlot
(v1.1) pkg> add PyPlot
julia> using PyPlot, PyCall
and it should import matplotlib and work (hopefully).
I get this error that suggests that matplotlib cannot be found although I am pretty sure it has been there the whole time :) I tried removing PyPlot and PyCall, re-adding them, and building PyCall after setting
ENV["PYTHON"] = ""
so that PyCall would be looking for the Python in.julia/conda
, but without success. The error output (FYI everything]up
ed, too):I have been using PyPlot for a bit now and it was working fine until I probably updated or changed something I shouldn't have (likely when trying to get widgets to work with Interact in Jupyter notebooks), and now I can't get PyPlot to work anymore... I'm very confused... Any help appreciated!