# Unable to install/use packages with julia-1.0.3

**URL:** <https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168>\
**Category:** New to Julia\
**Created:** [January 1, 2019, 5:11pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168 "2019-01-01T17:11:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 1, 2019, 5:11pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/1 "2019-01-01T17:11:56Z")

</div>

Hello,

I have been using Julia 0.6 for a while and decided to move to 1.0 today.

I’ve read documentation about the new package manager but I’m unable to use any package !

As usual, I installed Julia by unpacking the generic linux x86-64 archive and creating a symbolic link to julia binary in /usr/local/bin.

Then, in `julia repl`, the following command fails :

> using Pkg  
> ERROR: ArgumentError: Package Pkg not found in current path:  
> – Run `import Pkg; Pkg.add("Pkg")` to install the Pkg package.

Moreover, if I enter the `pkg repl` with `]`, I don’t see any default environment name before `pkg>`.  
When trying the `add` command, I always get the following error :

> ERROR: no active project

If I activate the current directory as an active project, then It looks like I can install new packages, but when I go back to the `julia repl` It is not possible to use them.

Do I miss something there ?

Thank you for your help,

Nicolas

---

<div class="post-metadata">

**Author:** ![arnavsood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/arnavsood/32/4675_2.png) [@arnavsood](https://discourse.julialang.org/u/arnavsood)\
**Post date:** [January 1, 2019, 7:07pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/2 "2019-01-01T19:07:34Z")

</div>

Sounds like you’re missing a default environment in your user depot (`~/.julia/environments/v1.0)`. If you `touch` a `Project.toml, Manifest.toml` into that folder, you should be good to go…

---

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 1, 2019, 10:41pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/3 "2019-01-01T22:41:02Z")

</div>

I already tried that when searching for a similar issue, but this does not make any improvement in my case…

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [January 2, 2019, 1:25am UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/4 "2019-01-02T01:25:17Z")

</div>

What happens if you delete the environments directory?

---

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 2, 2019, 10:17am UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/5 "2019-01-02T10:17:00Z")

</div>

In fact, the `.julia` directory is created when I launch julia for the first time but does not contain any `environments` folder.

When I activate an environment providing a name, a new folder with the same name is created in the working directory (I launch julia repl from a shell).  
And then, I’m not able to use that environment when I leave the pkg repl mode.

---

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 3, 2019, 12:58pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/6 "2019-01-03T12:58:17Z")

</div>

This problem occurs on 2 different personal computers where Debian 9 (current stable) is installed.

I just tried julia on Ubuntu 18.04 in a virtual machine (qemu) and everything works as expected !

Moreover the sad thing is I’m not able to compile `julia-1.0.3` from sources on my Debian.  
The compilation process gets stuck forever at the end, with no cpu usage, when compiling `sys.so`.

I would be interested to know if anybody with a Debian 9 has already managed to install `julia-1.x`, and how I should do.

Thanks

---

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 3, 2019, 2:58pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/7 "2019-01-03T14:58:39Z")

</div>

I solved my initial problem just by unsetting the variable `JULIA_LOAD_PATH` that I used with `julia 0.6.4`…

---

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 3, 2019, 3:03pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/8 "2019-01-03T15:03:47Z")

</div>

Apparently this also solves my compilation problem !

---

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 3, 2019, 3:15pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/9 "2019-01-03T15:15:16Z")

</div>

Without setting the environment variable `JULIA_LOAD_PATH`, the `LOAD_PATH` variable in `julia` repl is

> julia\> LOAD\_PATH  
> 3-element Array{String,1}:  
> “@”  
> “@v#.#”  
> “@stdlib”

Setting `JULIA_LOAD_PATH` totally erases this array.  
Is it done on purpose ? It seems that it should be better to just append the paths contained in `JULIA_LOAD_PATH` to this array…

Whatever, problem solved 🙂

---

<div class="post-metadata">

**Author:** ![anscoil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anscoil/32/7561_2.png) [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Post date:** [January 3, 2019, 4:43pm UTC](https://discourse.julialang.org/t/unable-to-install-use-packages-with-julia-1-0-3/19168/10 "2019-01-03T16:43:07Z")

</div>

Just for documentation in case this can help some people like me :

Apparently this is an open issue  
[https://github.com/JuliaLang/julia/issues/29513](https://github.com/JuliaLang/julia/issues/29513)

But this is solved by appending `:` to `JULIA_LOAD_PATH`.
