# Problem with Pkg: cannot be found in current path

**URL:** <https://discourse.julialang.org/t/problem-with-pkg-cannot-be-found-in-current-path/26492>\
**Category:** New to Julia\
**Tags:** pkg, error\
**Created:** [July 18, 2019, 8:20am UTC](https://discourse.julialang.org/t/problem-with-pkg-cannot-be-found-in-current-path/26492 "2019-07-18T08:20:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [July 18, 2019, 8:20am UTC](https://discourse.julialang.org/t/problem-with-pkg-cannot-be-found-in-current-path/26492/1 "2019-07-18T08:20:31Z")

</div>

Hi! I am working on Julia 1.0.3. I am using Atom in Ubuntu 16. Today I upgraded Atom and julia-client packages and after it Julia repl cannot start. Following error message is displayed:

```julia
Hold on tight while we are installing some packages for you.
This should only take a few seconds...

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

```

Some time ago I noticed that same issue is also with running Julia in normal terminal. I didn’t care though because if needed I could open terminal via Atom and it worked fine.

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

```

I looked at similar threads, but couldn’t find the solution. Thanks for help!

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [July 18, 2019, 8:49am UTC](https://discourse.julialang.org/t/problem-with-pkg-cannot-be-found-in-current-path/26492/2 "2019-07-18T08:49:14Z")

</div>

Have you messed with the `LOAD_PATH` variable (or the `JULIA_LOAD_PATH` environment variable)? What is the output of

```julia
julia> LOAD_PATH

```

and

```julia
julia> Base.load_path()

```

?

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [July 18, 2019, 9:02am UTC](https://discourse.julialang.org/t/problem-with-pkg-cannot-be-found-in-current-path/26492/3 "2019-07-18T09:02:38Z")

</div>

I might have messed with it. The outputs are:

```julia
julia> LOAD_PATH
3-element Array{String,1}:
 "/home/pgorski/Desktop/programming/julia/curheider" 
 "/home/pgorski/Desktop/programming/julia/curheider" 
 "/home/pgorski/Desktop/programming/julia/opusheider"
julia> Base.load_path()
2-element Array{String,1}:
 "/home/pgorski/Desktop/programming/julia/curheider" 
 "/home/pgorski/Desktop/programming/julia/opusheider"

```

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [July 22, 2019, 8:22am UTC](https://discourse.julialang.org/t/problem-with-pkg-cannot-be-found-in-current-path/26492/4 "2019-07-22T08:22:54Z")

</div>

Following fredrikekre question, I found the thread: [JULIA\_LOAD\_PATH replace load path instead of append to it](https://github.com/JuliaLang/julia/issues/29513). Reading it, I checked my .bashrc file and found out I am overwriting JULIA\_LOAD\_PATH variable. So I added colon and everything is fine.
