Hi everyone, I recently started to try learn Julia and cannot seem to install the Conda or PyCall packages. I have seen around that a lot of people have encountered this problem but they seem to be a bit old and the things they’ve tried to suggest don’t work for me.
When I try:
import Pkg; Pkg.add("Conda")
Pkg.build("Conda")
I get the following error:
Resolving package versions...
Updating `~/.juliapro/JuliaPro_v1.4.1-1/environments/v1.4/Project.toml`
[no changes]
Updating `~/.juliapro/JuliaPro_v1.4.1-1/environments/v1.4/Manifest.toml`
[no changes]
Building Conda → `~/.juliapro/JuliaPro_v1.4.1-1/packages/Conda/3rPhK/deps/build.log`
┌ Error: Error building `Conda`:
│ ERROR: LoadError: ArgumentError: Package Pkg not found in current path:
│ - Run `import Pkg; Pkg.add("Pkg")` to install the Pkg package.
│
│ Stacktrace:
│ [1] require(::Module, ::Symbol) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [2] include(::Module, ::String) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [3] load_julia_startup() at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [4] exec_options(::Base.JLOptions) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [5] _start() at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ in expression starting at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/etc/julia/startup.jl:5
└ @ Pkg.Operations /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.4.app/Contents/Resources/julia/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892
When I try to install PyCall I use:
import Pkg; Pkg.add("PyCall")
Pkg.build("PyCall")
and get the following error:
Resolving package versions...
Updating `~/.juliapro/JuliaPro_v1.4.1-1/environments/v1.4/Project.toml`
[no changes]
Updating `~/.juliapro/JuliaPro_v1.4.1-1/environments/v1.4/Manifest.toml`
[no changes]
Building Conda ─→ `~/.juliapro/JuliaPro_v1.4.1-1/packages/Conda/3rPhK/deps/build.log`
┌ Error: Error building `Conda`:
│ ERROR: LoadError: ArgumentError: Package Pkg not found in current path:
│ - Run `import Pkg; Pkg.add("Pkg")` to install the Pkg package.
│
│ Stacktrace:
│ [1] require(::Module, ::Symbol) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [2] include(::Module, ::String) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [3] load_julia_startup() at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [4] exec_options(::Base.JLOptions) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [5] _start() at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ in expression starting at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/etc/julia/startup.jl:5
└ @ Pkg.Operations /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.4.app/Contents/Resources/julia/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892
Building PyCall → `~/.juliapro/JuliaPro_v1.4.1-1/packages/PyCall/zqDXB/deps/build.log`
┌ Error: Error building `PyCall`:
│ ERROR: LoadError: ArgumentError: Package Pkg not found in current path:
│ - Run `import Pkg; Pkg.add("Pkg")` to install the Pkg package.
│
│ Stacktrace:
│ [1] require(::Module, ::Symbol) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [2] include(::Module, ::String) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [3] load_julia_startup() at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [4] exec_options(::Base.JLOptions) at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ [5] _start() at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ in expression starting at /Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/etc/julia/startup.jl:5
└ @ Pkg.Operations /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.4.app/Contents/Resources/julia/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892
I tried the suggestion from: Set ENV["PYTHON"]="pythoncommand" to set my Python environment. Now I have my ENV as:
Base.EnvDict with 31 entries:
"TERM_PROGRAM_VERSION" => "433"
"TMPDIR" => "/var/folders/yv/rrnzy52j137d266mztz356n1vg32qz…
"XPC_FLAGS" => "0x0"
"LANG" => "en_GB.UTF-8"
"TERM_PROGRAM" => "Apple_Terminal"
"XPC_SERVICE_NAME" => "0"
"DISPLAY" => "/private/tmp/com.apple.launchd.lJhya0Bmc3/org.…
"TERM_SESSION_ID" => "E82AC03F-D347-445F-A233-151FE24AEBE1"
"SSH_AUTH_SOCK" => "/private/tmp/com.apple.launchd.UfLJqDSz1e/List…
"TERM" => "xterm-256color"
"SHELL" => "/bin/zsh"
"HOME" => "/Users/rchan"
"LOGNAME" => "rchan"
"USER" => "rchan"
"PATH" => "/Applications/JuliaPro-1.4.1-1.app/Contents/Re…
"SHLVL" => "1"
"PWD" => "/Users/rchan/OneDrive - The Alan Turing Instit…
"OLDPWD" => "/Users/rchan/OneDrive - The Alan Turing Instit…
"_" => "/usr/local/bin/jupyter"
"__CF_USER_TEXT_ENCODING" => "0x76F18AFF:0x0:0x2"
"VERSIONER_PYTHON_VERSION" => "2.7"
"__PYVENV_LAUNCHER__" => "/usr/local/bin/python3"
"KERNEL_LAUNCH_TIMEOUT" => "40"
"JPY_PARENT_PID" => "63093"
"OPENBLAS_MAIN_FREE" => "1"
⋮ => ⋮