# Using a local package

**URL:** <https://discourse.julialang.org/t/using-a-local-package/111387>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 9, 2024, 4:42am UTC](https://discourse.julialang.org/t/using-a-local-package/111387 "2024-03-09T04:42:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [March 9, 2024, 4:57am UTC](https://discourse.julialang.org/t/using-a-local-package/111387/3 "2024-03-09T04:57:51Z")

</div>

> [@jiang\_ming\_zhang](#):
>
> I have to install the package first using pkg as suggested by the author. However, that failed.

Did you try:

```julia
mkdir Spin
cd Spin
julia --project="."

```

and then in Julia

```julia
]
add SpinMonteCarlo

```

Does this work? I get one warning, but no error.  
Quit Julia, restart it with

```julia
julia --project

```

and try again

```julia
using SpinMonteCarlo

```

Does this work? If not, what is the error message?

---

_[View the full topic](https://discourse.julialang.org/t/using-a-local-package/111387)._
