# How to solve the problem that the default installation path of the package is on the C drive??

**URL:** <https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862>\
**Category:** New to Julia\
**Tags:** question, package\
**Created:** [November 20, 2024, 4:46pm UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862 "2024-11-20T16:46:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiger\_Zhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiger_zhang/32/213538_2.png) [@tiger\_Zhang](https://discourse.julialang.org/u/tiger_Zhang)\
**Post date:** [November 20, 2024, 4:46pm UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862/1 "2024-11-20T16:46:21Z")

</div>

How to solve the problem that the default installation path of the package is on the C drive? What are the issues with changing an environment variable to change the default installation path?

I added two new system environment variables:

JULIA\_DEPOT\_PATH = D:\Package\Julia\JuliaPackages;  
D: \ Package, Julia, Julia - 1.11.1, local \ share \ Julia;  
D: \ Package, Julia, Julia - 1.11.1 \ share \ Julia;

JULIA\_LOAD\_PATH = D:\Package\Julia\JuliaPackages;  
@. @v#.#; @stdlib

Then add the following four paths to the system environment variable PATH:  
D: \ Package, Julia, Julia - 1.11.1 \ bin;  
D:\Package\Julia\JuliaPackages;  
D: \ Package, Julia, Julia - 1.11.1, local \ share \ Julia;  
D: \ Package, Julia, Julia - 1.11.1 \ share \ Julia;

D: \ Package, Julia, Julia - 1.11.1; It’s where Julia is,

D:\D:\Package\Julia\JuliaPackages; Is the path where I store the various packages I downloaded.  
What’s wrong with this?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [November 20, 2024, 5:07pm UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862/2 "2024-11-20T17:07:11Z")

</div>

after starting Julia, can you verify it actually picked up these environmental variables?

```julia
julia> DEPOT_PATH
3-element Vector{String}:
 "/home/akako/.julia"

```

---

<div class="post-metadata">

**Author:** ![tiger\_Zhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiger_zhang/32/213538_2.png) [@tiger\_Zhang](https://discourse.julialang.org/u/tiger_Zhang)\
**Post date:** [November 21, 2024, 4:48am UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862/4 "2024-11-21T04:48:47Z")

</div>

Yes, here is the out put:

```julia
julia> DEPOT_PATH

3-element Vector{String}:
 "D:\\Package\\Julia\\JuliaPackages"
 "D:\\Package\\Julia\\Julia-1.11.1\\local\\share\\julia"
 "D:\\Package\\Julia\\Julia-1.11.1\\share\\julia"

```

In fact, before I added the above environment variables, the result of it looked like this:

```julia
julia> DEPOT_PATH

3-element Vector{String}:
 "C:\\Users\\myUserName"
 "D:\\Package\\Julia\\Julia-1.11.1\\local\\share\\julia"
 "D:\\Package\\Julia\\Julia-1.11.1\\share\\julia"

```

So I only changed the first path and left the other two paths untouched. Without adding the latter two paths, the environment cannot be correctly identified.

> Blockquote

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [November 21, 2024, 8:03pm UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862/5 "2024-11-21T20:03:31Z")

</div>

> [@tiger\_Zhang](#):
>
> ```julia
> julia> DEPOT_PATH
> 
> 3-element Vector{String}:
> "D:\\Package\\Julia\\JuliaPackages"
> 
> ```

so in this case, does it work as expected now?

---

<div class="post-metadata">

**Author:** ![tiger\_Zhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiger_zhang/32/213538_2.png) [@tiger\_Zhang](https://discourse.julialang.org/u/tiger_Zhang)\
**Post date:** [November 23, 2024, 5:40pm UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862/6 "2024-11-23T17:40:12Z")

</div>

I think so. The package can be downloaded to the manually set path normally, but julia plots cannot be generated normally, and no error is reported.

However, the reason may have nothing to do with manually setting environment variables, because after deleting those environment variables, re-downloading VS Code and following the default path to download Plots, julia plots still cannot be generated.

I’m confused, it can execute code normally, but there are no plots. My computer was just factory reset yesterday, everything is brand new, but the problem is still there.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [November 23, 2024, 9:13pm UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-that-the-default-installation-path-of-the-package-is-on-the-c-drive/122862/7 "2024-11-23T21:13:52Z")

</div>

> [@tiger\_Zhang](#):
>
> VS Code and following the default path to download Plots, julia plots still cannot be generated.
> 
> I’m confused, it can execute code normally, but there are no plots.

sounds like a VS Code / plotting library usage issue? maybe you can open a new thread and write down exactly what you did and what you see (what does “no plot and no error” mean?)
