Pkg.update () and Pkg.rm () hang

I tried to update julia packages and I am having problems. First, I ran Pkg.update(), as always ...

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating Bio...
INFO: Computing changes...
INFO: Upgrading Atom: v0.2.0 => v0.2.1

It hung on this last line (I finally did a keyboard interrupt after about an hour). So I thought I was just uninstalling and reinstalling Atom.

julia> Pkg.rm("Atom")
INFO: Upgrading Colors: v0.6.1 => v0.6.2

Same problem. He is just hanging. The keyboard is interrupted again. Further:

julia> Pkg.rm("Colors")
INFO: Removing Colors (unregistered)

Everything went well.

julia> Pkg.rm("Atom")
INFO: Installing Colors v0.6.2 

hangs. If I try to add Colorsby itself, the first thing that happens is an update attempt Atom, and it freezes. So my main question is how to fix this, but I'm also confused why trying to uninstall a package is trying to install other packages.

+4
source share
1 answer

, , issue Pkg.update() Git, . Pkg.update() , , , , , Julia Git. v0.5 Julia Pkg, , , , . , , .

Pkg.rm("PKG"); Pkg.add("PKG");, datafig, , - , , , , .

rm(homedir() * "/.julia", recursive=true);Pkg.init()

pkgs = [
  "Colors",
  "Atom"
]

for p in pkgs
  Pkg.add(p)
end

, pkgs, , , .

+2

Source: https://habr.com/ru/post/1625375/


All Articles