# I want to create my own module and just use it like other modules

**URL:** <https://discourse.julialang.org/t/i-want-to-create-my-own-module-and-just-use-it-like-other-modules/36043>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 16, 2020, 2:05pm UTC](https://discourse.julialang.org/t/i-want-to-create-my-own-module-and-just-use-it-like-other-modules/36043 "2020-03-16T14:05:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Post date:** [March 16, 2020, 2:05pm UTC](https://discourse.julialang.org/t/i-want-to-create-my-own-module-and-just-use-it-like-other-modules/36043/1 "2020-03-16T14:05:06Z")

</div>

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

Stacktrace:
 [1] require(::Module, ::Symbol) at .\loading.jl:887

```

I know, that I could include and then use it with `using .MyExample`. But if I do that with in other moduls I get namesoace conflicts.

Just like in this good video 🙂

[![](https://global.discourse-cdn.com/julialang/original/3X/a/9/a9eed041bdd2be4339d3e6dd3961b86bdc1511f3.jpeg "Developing Julia Packages") ](https://www.youtube.com/watch?v=QVmU29rCjaA&t=470)

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [March 16, 2020, 2:19pm UTC](https://discourse.julialang.org/t/i-want-to-create-my-own-module-and-just-use-it-like-other-modules/36043/2 "2020-03-16T14:19:00Z")

</div>

You probably want to create a package. Have a look at the manual under “Pkg”. Also, I reccomend PkgTemplates.jl.

---

<div class="post-metadata">

**Author:** ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Post date:** [March 16, 2020, 2:53pm UTC](https://discourse.julialang.org/t/i-want-to-create-my-own-module-and-just-use-it-like-other-modules/36043/3 "2020-03-16T14:53:44Z")

</div>

Can I use PkgTemplates.jl without a github account?

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [March 16, 2020, 8:35pm UTC](https://discourse.julialang.org/t/i-want-to-create-my-own-module-and-just-use-it-like-other-modules/36043/4 "2020-03-16T20:35:01Z")

</div>

Yes

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [March 17, 2020, 8:59am UTC](https://discourse.julialang.org/t/i-want-to-create-my-own-module-and-just-use-it-like-other-modules/36043/5 "2020-03-17T08:59:37Z")

</div>

In general the package manager works fine with developing packages just locally. It needs to be a git repository though, but no need to have a remote on github or similar. In PkgTemplates.jl just ignore the github field, it will create a remote, but as long as you don’t do `git push` this is not needed.

(Although, if you are using Julia often, having a github account makes sense, as you need one to report bugs in packages and Julia itself.)
