# Error when installing packages

**URL:** <https://discourse.julialang.org/t/error-when-installing-packages/96793>\
**Category:** General Usage\
**Created:** [March 29, 2023, 5:43pm UTC](https://discourse.julialang.org/t/error-when-installing-packages/96793 "2023-03-29T17:43:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Luis\_Horta\_San](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jorge_luis_horta_san/32/48149_2.png) [@Jorge\_Luis\_Horta\_San](https://discourse.julialang.org/u/Jorge_Luis_Horta_San)\
**Post date:** [March 29, 2023, 5:43pm UTC](https://discourse.julialang.org/t/error-when-installing-packages/96793/1 "2023-03-29T17:43:50Z")

</div>

I am trying to install packages in a new installation of julia. I always get this error.  
 ![Julia_Capture](https://global.discourse-cdn.com/julialang/original/3X/9/0/90048da460a78cba8ee9d948b15e753fe31bf0f5.png)  
ERROR: ArgumentError: “H:\Temp\Admin” is not a directory. The problem is that I don’t even have a hard disk H drive. I understand that the problem is that this path does not exist but I have not found how to modify the path where the package will be installed.

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [March 29, 2023, 8:12pm UTC](https://discourse.julialang.org/t/error-when-installing-packages/96793/2 "2023-03-29T20:12:58Z")

</div>

I conjecture that your `TMP` or `TEMP` or similar environment variable points to `H:`.

It looks like Pkg is trying to create a temporary file using `tempdir()`. Cf

[https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.tempdir](https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.tempdir)

---

<div class="post-metadata">

**Author:** ![Jorge\_Luis\_Horta\_San](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jorge_luis_horta_san/32/48149_2.png) [@Jorge\_Luis\_Horta\_San](https://discourse.julialang.org/u/Jorge_Luis_Horta_San)\
**Post date:** [March 29, 2023, 8:54pm UTC](https://discourse.julialang.org/t/error-when-installing-packages/96793/3 "2023-03-29T20:54:53Z")

</div>

Thanks a lot. I modify the TMP environment variable to define the correct path.
