It is the first time I cannot install a package by the standard pkg way. I am using vscode and windows 10.
I need this package because it is invoked in another package which I want to use.
What is the problem?
(@v1.10) pkg> add PyCall
Resolving package versions...
No Changes to `C:\Users\jmzhang\.julia\environments\v1.10\Project.toml`
No Changes to `C:\Users\jmzhang\.julia\environments\v1.10\Manifest.toml`
julia> using PyCall
Precompiling PyCall
Info Given PyCall was explicitly requested, output will be shown live
ERROR: LoadError: PyCall not properly installed. Please run Pkg.build("PyCall")
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] top-level scope
@ C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\startup.jl:44
[3] include(mod::Module, _path::String)
@ Base .\Base.jl:495
[4] include(x::String)
@ PyCall C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\PyCall.jl:1
[5] top-level scope
@ C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\PyCall.jl:38
[6] include
@ Base .\Base.jl:495 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base .\loading.jl:2216
[8] top-level scope
@ stdin:3
in expression starting at C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\startup.jl:41
in expression starting at C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\PyCall.jl:1
in expression starting at stdin:3
β PyCall
0 dependencies successfully precompiled in 2 seconds. 7 already precompiled.
ERROR: The following 1 direct dependency failed to precompile:
PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0]
Failed to precompile PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0] to "C:\\Users\\jmzhang\\.julia\\compiled\\v1.10\\PyCall\\jl_E3BC.tmp".
ERROR: LoadError: PyCall not properly installed. Please run Pkg.build("PyCall")
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] top-level scope
@ C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\startup.jl:44
[3] include(mod::Module, _path::String)
@ Base .\Base.jl:495
[4] include(x::String)
@ PyCall C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\PyCall.jl:1
[5] top-level scope
@ C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\PyCall.jl:38
[6] include
@ Base .\Base.jl:495 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base .\loading.jl:2216
[8] top-level scope
@ stdin:3
in expression starting at C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\startup.jl:41
in expression starting at C:\Users\jmzhang\.julia\packages\PyCall\1gn3u\src\PyCall.jl:1
in expression starting at stdin:
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\jmzhang\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\Types.jl:70
[2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{β¦}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@Kwargs{β¦})
@ Pkg.API C:\Users\jmzhang\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\API.jl:1656
[3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{_from_loading::Bool})
@ Pkg.API C:\Users\jmzhang\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\API.jl:159
[4] precompile
@ Pkg.API C:\Users\jmzhang\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\API.jl:147 [inlined]
[5] #precompile#114
@ Pkg.API C:\Users\jmzhang\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\API.jl:146 [inlined]
[6] #invokelatest#2
@ Base .\essentials.jl:889 [inlined]
[7] invokelatest
@ Base .\essentials.jl:884 [inlined]
[8] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1957
[9] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[10] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[11] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[12] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[13] macro expansion
@ Base .\loading.jl:1784 [inlined]
[14] macro expansion
@ Base .\lock.jl:267 [inlined]
[15] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[16] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[17] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[18] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[19] eval
@ .\boot.jl:385 [inlined]
[20] eval
@ .\Base.jl:88 [inlined]
[21] repleval(m::Module, code::Expr, ::String)
@ VSCodeServer c:\Users\jmzhang\.vscode\extensions\julialang.language-julia-1.66.2\scripts\packages\VSCodeServer\src\repl.jl:229
[22] (::VSCodeServer.var"#110#112"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\jmzhang\.vscode\extensions\julialang.language-julia-1.66.2\scripts\packages\VSCodeServer\src\repl.jl:192
[23] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:515
[24] with_logger
@ .\logging.jl:627 [inlined]
[25] (::VSCodeServer.var"#109#111"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\jmzhang\.vscode\extensions\julialang.language-julia-1.66.2\scripts\packages\VSCodeServer\src\repl.jl:193
[26] #invokelatest#2
@ Base .\essentials.jl:887 [inlined]
[27] invokelatest(::Any)
@ Base .\essentials.jl:884
[28] (::VSCodeServer.var"#62#63")()
@ VSCodeServer c:\Users\jmzhang\.vscode\extensions\julialang.language-julia-1.66.2\scripts\packages\VSCodeServer\src\eval.jl:34
Some type information was truncated. Use `show(err)` to see complete types.