Julia tips #8: パッケージの追加に失敗したとき
自宅PCにDifferentialEquations.jlを追加しようとしたら以下のようなエラーが...
julia> Pkg.add("DifferentialEquations") ERROR: resolve is unable to satisfy package requirements. The problem was detected when trying to find a feasible version for package DiffEqPhysics. However, this only means that package DiffEqPhysics is involved in an unsatisfiable or difficult dependency relation, and the rootof the problem may be elsewhere. (you may try increasing the value of the JULIA_PKGRESOLVE_ACCURACY environment variable)
パッケージのアップデートしたら解決するだろうと
Pkg.update()
もしてみたが解説せず。
同じことで困っている人を探したら以下のような投稿を発見。
いっぱいやり取りしてくれてますが、要は
julia>ENV["JULIA_PKGRESOLVE_ACCURACY"] = 10 julia>Pkg.resolve()
とするだけ。
何が起きてるのかはよくわかりませんが、バージョンの依存関係をいい感じに直してくれてるみたい?
後はPkg.addで好きなパッケージを追加していきましょう。