Johannes Lange
Johannes Lange

Reputation: 51

Can't install Packages in Julia

As the title says I can't seem to be able to install packages in Julia using Pluto anymore even though until a few days ago everything worked as it should.Error Code New Error

Upvotes: 3

Views: 1156

Answers (1)

logankilpatrick
logankilpatrick

Reputation: 14561

These are indeed some of the more tricky situations to resolve so please bear with me as we work through this.

  1. I would first suggest that you switch over from Pluto to the Julia Repl (the command-line version of Julia) as it makes running the Pkg command much easier. You can run by typing julia in the terminal or by opening the julia "desktop app" downloaded from https://julialang.org.
  2. If you are not familiar with the basics of the package manager, it's worth a quick read to check out: https://julialang.github.io/Pkg.jl/v1/getting-started/
  3. Assuming you are now in the Julia Repl, my general work flow for these issues is to remove everything it warns me about. The core problem here is that one of your existing packages is saying it needs a specific version of Distributions.jl but it's not able to add it. So, the first step would be to enter the pkg manager by doing ] and type rm Distributions.
  4. Then, while still in the pkg mode, do resolve and add Distributions.

Let me know if you still run into the issue after that (please edit your original question with the updated info).

Upvotes: 3

Related Questions