Error JuMP in Julia version 0.7

#1

Hello Users,
I don’t know that happened, but Julia don’t recognize the Package JuMP. When I run
“using JuMP”
the the errors appears:

julia> Pkg.add(“JuMP”)
WARNING: Base.Pkg is deprecated, run using Pkg instead
in module Main
Updating registry at C:\Users\User\.julia\registries\General
Updating git-repo https://github.com/JuliaRegistries/General.git
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
┌ Warning: Package JuMP does not have LinearAlgebra in its dependencies:
│ - If you have JuMP checked out for development and have
│ added LinearAlgebra as a dependency but haven’t updated your primary
│ environment’s manifest file, try Pkg.resolve().
│ - Otherwise you may need to report an issue with JuMP
└ Loading LinearAlgebra into JuMP from project dependency, future warnings for JuMP are suppressed.
ERROR: LoadError: ArgumentError: Package JuMP does not have MathOptInterface in its dependencies:

  • If you have JuMP checked out for development and have
    added MathOptInterface as a dependency but haven’t updated your primary
    environment’s manifest file, try Pkg.resolve().
  • Otherwise you may need to report an issue with JuMP
    Stacktrace:
    [1] require(::Module, ::Symbol) at .\loading.jl:830
    [2] include at .\boot.jl:317 [inlined]
    [3] include_relative(::Module, ::String) at .\loading.jl:1038
    [4] include(::Module, ::String) at .\sysimg.jl:29
    [5] top-level scope at none:2
    [6] eval at .\boot.jl:319 [inlined]
    [7] eval(::Expr) at .\client.jl:399
    [8] top-level scope at .\none:3
    in expression starting at C:\Users\User.julia\packages\JuMP\PbnIJ\src\JuMP.jl:16
    julia> using JuMP
    [ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
    ┌ Warning: Package JuMP does not have LinearAlgebra in its dependencies:
    │ - If you have JuMP checked out for development and have
    │ added LinearAlgebra as a dependency but haven’t updated your primary
    │ environment’s manifest file, try Pkg.resolve().
    julia> using Juniper
    [ Info: Recompiling stale cache file C:\Users\User.julia\compiled\v0.7\Juniper\IquFR.ji for Juniper [2ddba703-00a4-53a7-87a5-e8b9971dde84]
    ┌ Warning: Package JuMP does not have LinearAlgebra in its dependencies:│ - If you have JuMP checked out for development and have
    │ added LinearAlgebra as a dependency but haven’t updated your primary
    │ environment’s manifest file, try Pkg.resolve().
    │ - Otherwise you may need to report an issue with JuMP
    └ Loading LinearAlgebra into JuMP from project dependency, future warnings for JuMP are suppressed.
    ERROR: LoadError: ArgumentError: Package JuMP does not have MathOptInterface in its dependencies:
  • If you have JuMP checked out for development and have
    added MathOptInterface as a dependency but haven’t updated your primary
    environment’s manifest file, try Pkg.resolve().
  • Otherwise you may need to report an issue with JuMP
    Stacktrace:
    [1] require(::Module, ::Symbol) at .\loading.jl:830
    [2] include at .\boot.jl:317 [inlined] [3] include_relative(::Module, ::String) at .\loading.jl:1038
    [4] include(::Module, ::String) at .\sysimg.jl:29 [5] top-level scope at none:2
    [6] eval at .\boot.jl:319 [inlined]
    [7] eval(::Expr) at .\client.jl:399
    julia> using JuMP
    [ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]┌ Warning: Package JuMP does not have LinearAlgebra in its dependencies:
    │ - If you have JuMP checked out for development and have│ added LinearAlgebra as a dependency but haven’t updated your primary
    │ environment’s manifest file, try Pkg.resolve().
    │ - Otherwise you may need to report an issue with JuMP
    └ Loading LinearAlgebra into JuMP from project dependency, future warnings for JuMP are suppressed.
    ERROR: LoadError: ArgumentError: Package JuMP does not have MathOptInterface in its dependencies:
  • If you have JuMP checked out for development and have
    added MathOptInterface as a dependency but haven’t updated your primary
    environment’s manifest file, try Pkg.resolve().
  • Otherwise you may need to report an issue with JuMP
    Stacktrace:
    [1] require(::Module, ::Symbol) at .\loading.jl:830
    [2] include at .\boot.jl:317 [inlined]
    [3] include_relative(::Module, ::String) at .\loading.jl:1038
    [4] include(::Module, ::String) at .\sysimg.jl:29
    [5] top-level scope at none:2 [6] eval at .\boot.jl:319 [inlined]
    [7] eval(::Expr) at .\client.jl:399 [8] top-level scope at .\none:3
    in expression starting at C:\Users\User.julia\packages\JuMP\PbnIJ\src\JuMP.jl:16
    ERROR: Failed to precompile JuMP [4076af6c-e467-56ae-b986-b466b2749572] to C:\Users\User.julia\compiled\v0.7\JuMP\DmXqY.ji.
    Stacktrace:
    [1] macro expansion at .\logging.jl:313 [inlined]
    [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1185
    [3] macro expansion at .\logging.jl:311 [inlined]
    [4] _require(::Base.PkgId) at .\loading.jl:941
    [5] require(::Base.PkgId) at .\loading.jl:852
    [6] macro expansion at .\logging.jl:311 [inlined]
    [7] require(::Module, ::Symbol) at .\loading.jl:834

Anyone can help me, please?

#2

Use Julia 1.0. We don’t support 0.7 anymore.

1 Like