# Conda ROOTENV path wrong

**URL:** https://discourse.julialang.org/t/conda-rootenv-path-wrong/45186
**Category:** New to Julia
**Created:** [August 19, 2020, 12:17am UTC](https://discourse.julialang.org/t/conda-rootenv-path-wrong/45186 "2020-08-19T00:17:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![akahs](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akahs/32/15377_2.png) [@akahs](https://discourse.julialang.org/u/akahs)
#### Post date: [August 19, 2020, 12:17am UTC](https://discourse.julialang.org/t/conda-rootenv-path-wrong/45186/1 "2020-08-19T00:17:26Z")

</div>

I am using Julia 1.5, but for some reason when I look at Conda root environment in Julia, it points to an old installation, even though it has been uninstalled. Whenever I install anything through Conda they are installed in the wrong location. Is there any way I can update/change this ROOTENV path?

```julia
julia> Conda.ROOTENV
"C:\\Users\\akahs\\.juliapro\\JuliaPro_v1.4.0-1\\Conda_env"

```

---

<div class="post-metadata">

### Author: ![mmaeusezahl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mmaeusezahl/32/18325_2.png) [@mmaeusezahl](https://discourse.julialang.org/u/mmaeusezahl)
#### Post date: [August 21, 2020, 7:49am UTC](https://discourse.julialang.org/t/conda-rootenv-path-wrong/45186/2 "2020-08-21T07:49:34Z")

</div>

I think I had a very similar issue lately after manually changing the JULIA\_DEPOT\_PATH environment variable. The solution would be to locate your JULIA\_DEPOT\_PATH (if it is not set then it will be the default; in your case under Windows this would be something like `C:\\Users\\akahs\\.julia` I assume; not sure about JuliaPro though^^).

In this folder you’ll find two `deps.jl` files created by Conda.jl. They are located under:

- `%JULIA_DEPOT_PATH%\conda\deps.jl`
- `%JULIA_DEPOT_PATH%\packages\Conda\{some numbers+characters}\deps\deps.jl` (\<-- this one is the actually important one)

These files were created during the build phase of the Conda.jl package and essentially store the location of the JULIA\_DEPOT\_PATH at that point in time to maintain a stable reference to that location. Ever after, this path simply gets loaded by Conda.jl, ignoring any other changes to the system. I don’t fully understand the reasoning behind this and I think it is a flawed behavior, since it means that any change to the JULIA\_DEPOT\_PATH will break the Conda.jl installation. IMHO Conda.jl should always use the current JULIA\_DEPOT\_PATH unless explicitly told otherwise. You can have a look into your `deps.jl` files and confirm that they are indeed pointing to the old path.

This would be the solution to your problem then:

- Delete both the `deps.jl` files
- Start Julia and run `Pkg.build("Conda")` or type `]build Conda`

Afterwards Conda will have to reinstall quite a few python packages but in the end everything should be in its “default” location again.

I also opened a GitHub issue on this matter but it did not get any traction so far. If you can confirm this was also the problem in your case I would bump it over there:  
[https://github.com/JuliaPy/Conda.jl/issues/183](https://github.com/JuliaPy/Conda.jl/issues/183)

---

<div class="post-metadata">

### Author: ![akahs](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akahs/32/15377_2.png) [@akahs](https://discourse.julialang.org/u/akahs)
#### Post date: [August 22, 2020, 10:29pm UTC](https://discourse.julialang.org/t/conda-rootenv-path-wrong/45186/3 "2020-08-22T22:29:24Z")

</div>

Thanks! It was indeed the problem. Don’t understand how it was setup this way. In my case it’s probably because I used JuliaPro before so the Conda root path was kept there, but it really shouldn’t be.
