When I use Pkg.add(“IJulia”), I get back an error like this:
Please do not send screenshots – just copy the code and put it in backticks.
Which version of Julia is this?
Are you using Julia v1?
I got a very similar error message when trying to install the Atom package.
The new package manager has a different syntax.
In REPL, start the package manager by typing ]
then type add IJulia
This worked for the Atom
package in my case.
Could you run:
rm(joinpath(homedir(), ".julia", "registries"); recursive=true)
and try again?
This is a bug in Pkg that should be fixed in 1.0.1
Thank you.This is v1.0.
The error message:
ERROR: The following package names could not be resolved:
- IJulia (not found in project, manifest or registry)
Please specify by knownname=uuid
.
This really helps, thank you so much!
still after this solution ```
rm(joinpath(homedir(), “.julia”, “registries”); recursive=true)
A post was split to a new topic: Problem adding LinearAlgebra
This really solve the problem. However I met the same problem in Atom with Julia1.2.0.
Here just to confirm that for v1.1.0 this is still a bug.
i am facing the same error message when installing Diffeqpy in Julia on a littlest jupyterhub environment
julia> rm(joinpath(homedir(), ".julia", "registries"); recursive=true)
julia> import Pkg; Pkg.add("diffeqpy")
Cloning default registries into /home/jupyter-devbox/.julia/registries
Cloning registry General from "https://github.com/JuliaRegistries/General.git"
ERROR: The following package names could not be resolved:
* diffeqpy (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Stacktrace:
[1] pkgerror(::String) at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120
[2] #ensure_resolved#43(::Bool, ::Function, ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:900
[3] #ensure_resolved at ./none:0 [inlined]
[4] #add_or_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:59
[5] #add_or_develop at ./none:0 [inlined]
[6] #add_or_develop#12 at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:29 [inlined]
[7] #add_or_develop at ./none:0 [inlined]
[8] #add_or_develop#11 at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:28 [inlined]
[9] #add_or_develop at ./none:0 [inlined]
[10] #add_or_develop#10 at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:27 [inlined]
[11] #add_or_develop at ./none:0 [inlined]
[12] #add#18 at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69 [inlined]
[13] add(::String) at /home/conda/feedstock_root/build_artifacts/julia_1548684429855/work/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69
[14] top-level scope at none:0
julia> Pkg.status()
Status `~/.julia/environments/v1.0/Project.toml`
[0c46a032] DifferentialEquations v6.9.0
[28b8d3ca] GR v0.42.0
[7073ff75] IJulia v1.20.2
[91a5bcdd] Plots v0.27.0
[438e738f] PyCall v1.91.2
julia>
AFAICT diffeqpy
is python package, not a julia package
Understood. this was for the python interpretator.
Thank you so much bro!
This solution really help me