Problem with using IJulia

Hi, i’m new to the community and this is the first time using Julia languege, so i’m at the beginig.

My problem is the follow:
when I try to use IJulia the system answer me with this message :

ERROR: LoadError: IJulia not properly installed. Please run"IJulia")
 [1] error(::String) at .\error.jl:33
 [2] top-level scope at C:\Users\cg\.julia\packages\IJulia\e8kqU\src\IJulia.jl:49
 [3] include(::Function, ::Module, ::String) at .\Base.jl:380
 [4] include(::Module, ::String) at .\Base.jl:368
 [5] top-level scope at none:2
 [6] eval at .\boot.jl:347 [inlined]
 [7] eval(::Expr) at .\client.jl:467
 [8] top-level scope at .\none:3
in expression starting at C:\Users\cg\.julia\packages\IJulia\e8kqU\src\IJulia.jl:49
ERROR: Failed to precompile IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] to C:\Users\cg\.julia\compiled\v1.5\IJulia\nfu7T_sMPbI.ji.
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923
 [6] eval at .\boot.jl:347 [inlined]
 [7] eval at .\Base.jl:39 [inlined]
 [8] repleval(::Module, ::Expr, ::String) at c:\Users\cg\.vscode\extensions\julialang.language-julia-1.1.34\scripts\packages\VSCodeServer\src\repl.jl:124
 [9] (::VSCodeServer.var"#47#49"{Module,Expr,REPL.LineEditREPL,REPL.LineEdit.Prompt})() at c:\Users\cg\.vscode\extensions\julialang.language-julia-1.1.34\scripts\packages\VSCodeServer\src\repl.jl:99
 [10] with_logstate(::Function, ::Any) at .\logging.jl:408
 [11] with_logger at .\logging.jl:514 [inlined]
 [12] (::VSCodeServer.var"#46#48"{Module,Expr,REPL.LineEditREPL,REPL.LineEdit.Prompt})() at c:\Users\cg\.vscode\extensions\julialang.language-julia-1.1.34\scripts\packages\VSCodeServer\src\repl.jl:100
 [13] #invokelatest#1 at .\essentials.jl:710 [inlined]
 [14] invokelatest(::Any) at .\essentials.jl:709
 [15] macro expansion at c:\Users\cg\.vscode\extensions\julialang.language-julia-1.1.34\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
 [16] (::VSCodeServer.var"#60#61")() at .\task.jl:356

what i can do to fix it?

PS: my operating system is Windows 7.

What happens if you run

using Pkg“IJulia”)

as suggested by the error?

something works but when i try to instale Jupyter the system answer me this error:
Building Conda ─→ C:\Users\cg\.julia\packages\Conda\tJJuN\deps\build.log
Building IJulia → C:\Users\cg\.julia\packages\IJulia\e8kqU\deps\build.log

julia> using IJulia
[ Info: Precompiling IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a]

julia> notebook()
install Jupyter via Conda, y/n? [y]: y
[ Info: Downloading miniconda installer …
ERROR: failed process: Process('C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe' -Version 3 -NoProfile -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (New-Object System.Net.Webclient).DownloadFile('', 'C:\Users\cg\.julia\conda\3\installer.exe')", ProcessExited(2003916128)) [2003916128]

[1] pipeline_error at .\process.jl:525 [inlined]
[2] download_powershell(::String, ::String) at .\download.jl:20
[3] download at .\download.jl:64 [inlined]
[4] _install_conda(::String, ::Bool) at C:\Users\cg.julia\packages\Conda\tJJuN\src\Conda.jl:200
[5] _install_conda(::String) at C:\Users\cg.julia\packages\Conda\tJJuN\src\Conda.jl:191
[6] runconda(::Cmd, ::String) at C:\Users\cg.julia\packages\Conda\tJJuN\src\Conda.jl:127
[7] add(::String, ::String; channel::String) at C:\Users\cg.julia\packages\Conda\tJJuN\src\Conda.jl:221
[8] add at C:\Users\cg.julia\packages\Conda\tJJuN\src\Conda.jl:220 [inlined] (repeats 2 times)
[9] find_jupyter_subcommand(::String) at C:\Users\cg.julia\packages\IJulia\e8kqU\src\jupyter.jl:23
[10] notebook(; dir::String, detached::Bool) at C:\Users\cg.julia\packages\IJulia\e8kqU\src\jupyter.jl:96
[11] notebook() at C:\Users\cg.julia\packages\IJulia\e8kqU\src\jupyter.jl:95
[12] top-level scope at REPL[19]:1

ah, now I’m using VS code editor without the jupyter extension, but on the machine i have installed anaconda.
I don’t know if this information could help you.

I don’t know much about Windows 7, and I guess not many people do these days given it’s past its end of life, but did you look at the windows 7 specific installation instructions here Platform Specific Instructions for Official Binaries?

I see your error is powershell related so that might have something to do with it?

1 Like