# Unable to install Conda or PyCall

**URL:** <https://discourse.julialang.org/t/unable-to-install-conda-or-pycall/39956>\
**Category:** General Usage\
**Tags:** package, pycall\
**Created:** [May 22, 2020, 11:20am UTC](https://discourse.julialang.org/t/unable-to-install-conda-or-pycall/39956 "2020-05-22T11:20:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Chan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ryan_chan/32/15085_2.png) [@Ryan\_Chan](https://discourse.julialang.org/u/Ryan_Chan)\
**Post date:** [May 22, 2020, 11:20am UTC](https://discourse.julialang.org/t/unable-to-install-conda-or-pycall/39956/1 "2020-05-22T11:20:06Z")

</div>

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:

```julia
import Pkg; Pkg.add("Conda")
Pkg.build("Conda")

```

I get the following error:

```julia
  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:

```julia
import Pkg; Pkg.add("PyCall")
Pkg.build("PyCall")

```

and get the following error:

```julia
  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"](https://discourse.julialang.org/t/set-env-python-pythoncommand/28439) to set my Python environment. Now I have my ENV as:

```julia
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"
  ⋮ => ⋮

```

---

<div class="post-metadata">

**Author:** ![zenon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zenon/32/6508_2.png) [@zenon](https://discourse.julialang.org/u/zenon)\
**Post date:** [May 26, 2020, 8:02pm UTC](https://discourse.julialang.org/t/unable-to-install-conda-or-pycall/39956/2 "2020-05-26T20:02:45Z")

</div>

Hello Ryan,

is this inside a IJulia notebook?

I ask, because that’s where I saw this message myself today.

In my case, I was able to solve the issue with installing the needed dependencies outside of IJulia, i.e. in Julia in the shell.  
After this I now can use the libraries inside the notebooks too.

Can’t tell if this is of help, but as your question is still waiting, I want to add my two cents.

Greetings, z.
