ERROR: Unsatisfiable requirements detected for package PlotsBase [c52230a3]:

(@v1.7) pkg> activate clean
Activating new project at C:\Users\abc\Desktop\clean

(clean) pkg> add GitHub - JuliaPlots/Plots.jl: Powerful convenience for Julia visualizations and data analysis
Updating git-repo https://github.com/JuliaPlots/Plots.jl
Updating registry at C:\Users\abc\.julia\registries\General.toml
Resolving package versions…
ERROR: Unsatisfiable requirements detected for package PlotsBase [c52230a3]:
PlotsBase [c52230a3] log:
├─PlotsBase [c52230a3] has no known versions!
└─restricted to versions 0.1 by Plots [91a5bcdd] — no versions left
└─Plots [91a5bcdd] log:
├─possible versions are: 2.0.0 or uninstalled
└─Plots [91a5bcdd] is fixed to version 2.0.0

What is the solution ? [ Julia 1.7.1]

Works for me on v1.7.3. Put your code into a code block, BTW. Why don’t you update Julia, BTW?

Plots [91a5bcdd] is fixed to version 2.0.0

How come? (Current Plots release is 1.40.1)

What is the output of:

using Pkg
Pkg.status()

?

1 Like

If you want to install the released version of Plots, just do

pkg> add Plots

If you want to install the master default branch of Plots you also need to add some unregistered dependencies. This seems to work:

pkg> add https://github.com/JuliaPlots/Plots.jl:PlotsBase https://github.com/JuliaPlots/Plots.jl:RecipesPipeline  https://github.com/JuliaPlots/Plots.jl
2 Likes

Ah that’s the answer, the automatic URL formatting on Discourse made me miss the fact that OP is doing add https://github.com/JuliaPlots/Plots.jl

Just to be clear, this is because I changed the default branch of the Plots repo to be v2 in preparation of the 2.0 release in the unknown future.

You can still get the latest (potentially unreleased) 1.x version via add Plots#master.

(@v1.7) pkg> add https://github.com/JuliaPlots/Plots.jl:PlotsBase https://github.com/JuliaPlots/Plots.jl:RecipesPipeline GitHub - JuliaPlots/Plots.jl: Powerful convenience for Julia visualizations and data analysis
Updating git-repo https://github.com/JuliaPlots/Plots.jl
Updating git-repo https://github.com/JuliaPlots/Plots.jl
Updating git-repo https://github.com/JuliaPlots/Plots.jl
Updating registry at C:\Users\abc\.julia\registries\General.toml
Resolving package versions…
Updating C:\Users\abc\.julia\environments\v1.7\Project.toml
[91a5bcdd] ~ Plots v1.40.4 ⇒ v2.0.0 https://github.com/JuliaPlots/Plots.jl#v2
[c52230a3] + PlotsBase v0.1.0 https://github.com/JuliaPlots/Plots.jl:PlotsBase#v2
[01d81517] + RecipesPipeline v1.0.0 https://github.com/JuliaPlots/Plots.jl:RecipesPipeline#v2
Updating C:\Users\abc\.julia\environments\v1.7\Manifest.toml
[91a5bcdd] ~ Plots v1.40.4 ⇒ v2.0.0 https://github.com/JuliaPlots/Plots.jl#v2
[c52230a3] + PlotsBase v0.1.0 https://github.com/JuliaPlots/Plots.jl:PlotsBase#v2
[01d81517] ~ RecipesPipeline v0.6.12 ⇒ v1.0.0 https://github.com/JuliaPlots/Plots.jl:RecipesPipeline#v2
Precompiling project…
✗ Plots
2 dependencies successfully precompiled in 83 seconds (164 already precompiled, 2 skipped during auto due to previous errors)
1 dependency errored. To see a full report either run import Pkg; Pkg.precompile() or load the package

  Status `C:\Users\abc\.julia\environments\v1.7\Project.toml`

[336ed68f] CSV v0.10.14
[a93c6f00] DataFrames v1.6.1
[91a5bcdd] Plots v2.0.0 https://github.com/JuliaPlots/Plots.jl#v2
[c52230a3] PlotsBase v0.1.0 https://github.com/JuliaPlots/Plots.jl:PlotsBase#v2
[438e738f] PyCall v1.96.4 https://github.com/JuliaPy/PyCall.jl#master
[d330b81b] PyPlot v2.11.2
[01d81517] RecipesPipeline v1.0.0 https://github.com/JuliaPlots/Plots.jl:RecipesPipeline#v2

Updating git-repo https://github.com/JuliaPlots/Plots.jl
Resolving package versions…
ERROR: Unsatisfiable requirements detected for package RecipesPipeline [01d81517]:
RecipesPipeline [01d81517] log:
├─possible versions are: 1.0.0 or uninstalled
├─restricted to versions 1 by PlotsBase [c52230a3], leaving only versions 1.0.0
│ └─PlotsBase [c52230a3] log:
│ ├─possible versions are: 0.1.0 or uninstalled
│ └─PlotsBase [c52230a3] is fixed to version 0.1.0
├─restricted to versions 0.6.10-0.6 by Plots [91a5bcdd] — no versions left
│ └─Plots [91a5bcdd] log:
│ ├─possible versions are: 1.40.5 or uninstalled
│ └─Plots [91a5bcdd] is fixed to version 1.40.5
└─RecipesPipeline [01d81517] is fixed to version 1.0.0

Why do you want to add the unreleased Plots v2 rather than just using the release version? And why do you want to do so on an old Julia release?

I’ve just checked Gunnar’s suggestion on both Julia 1.10.3 and 1.7.3 and both work fine, so in this case it’s not a Julia version issue but in general if you want to live on the bleeding edge of package development and work with unreleased versions it’s advisable to also use a current Julia version.