# How to activate local environment in shell?

**URL:** https://discourse.julialang.org/t/how-to-activate-local-environment-in-shell/16848
**Category:** New to Julia
**Created:** [October 27, 2018, 7:49am UTC](https://discourse.julialang.org/t/how-to-activate-local-environment-in-shell/16848 "2018-10-27T07:49:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cenwangumass](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@cenwangumass](https://discourse.julialang.org/u/cenwangumass)
#### Post date: [October 27, 2018, 7:49am UTC](https://discourse.julialang.org/t/how-to-activate-local-environment-in-shell/16848/1 "2018-10-27T07:49:45Z")

</div>

Hi,

I’m a new Julia user coming from Python. In Python, you can `activate` the environment in the shell and then `python3 main.py` to run the script. What is the equivalent way of doing this in Julia? Thanks!

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [October 27, 2018, 8:06am UTC](https://discourse.julialang.org/t/how-to-activate-local-environment-in-shell/16848/2 "2018-10-27T08:06:39Z")

</div>

You have the `--project` flag, but it will not run anything by itself. You could do

```nohighlight
julia --project=/path/to/MyProject -e 'using MyProject; run_whatever()'

```

or similar.
