JuliaPy / Conda.jl

Conda managing Julia binary dependencies
Other
174 stars 57 forks source link

Unable to update matplotlib through Conda #206

Closed vishalhedgevantage closed 2 years ago

vishalhedgevantage commented 2 years ago

My current Julia env uses Conda dependencies within Julia. However I have run into a problem with PyPlot which cant work with matplotlib 3.3.2 version. It asks for upgrading matplotlib to 3.4.0. I have tried Conda.update() but latest version of matplotlib is never pulled.

stevengj commented 2 years ago

(PyPlot doesn't require matplotlib 3.3 as far as I recall?)

I just tried Conda.update() and it pulls matplotlib 3.4 for me:

julia> Conda.version("matplotlib")
v"3.4.2"

Maybe you pinned it at a particular version?

vishalhedgevantage commented 2 years ago

This is what I get. I followed the instructions that are mentioned -

Warning: You are using Matplotlib 3.3.2, which is no longer │ officially supported by the Plots community. To ensure smooth Plots.jl │ integration update your Matplotlib library to a version >= 3.4.0 │ │ If you have used Conda.jl to install PyPlot (default installation), │ upgrade your matplotlib via Conda.jl and rebuild the PyPlot. │ │ If you are not sure, here are the default instructions: │ │ In Julia REPL: │ ``` │ import Pkg; │ Pkg.add("Conda") │ import Conda │ Conda.update() │ Pkg.build("PyPlot")

stevengj commented 2 years ago

(That's Plots, not PyPlot per se.)

stevengj commented 2 years ago

What does Conda.version("matplotlib") report for you?

vishalhedgevantage commented 2 years ago

I explicitly initialise pyplot() at the beginning to use PyPlot as backend with Plots.jl. If I use PyPlot explicitly then its fine but when I want to use it through Plots then it gives me an issue. After removing matplotlib dependency using Conda.rm, I have now tried re-installing matplotlib and now its fetched the latest version of matplotlib. Earlier version info from Conda or PyPlot.matplotlib[:version] were all "3.3.2"

stevengj commented 2 years ago

After removing matplotlib dependency using Conda.rm, I have now tried re-installing matplotlib and now its fetched the latest version of matplotlib.

Probably you had it pinned to a particular version (you downloaded a specific version at some point).