# Specify Julia enviroment in PyJulia?

**URL:** <https://discourse.julialang.org/t/specify-julia-enviroment-in-pyjulia/57776>\
**Category:** General Usage\
**Created:** [March 23, 2021, 10:52am UTC](https://discourse.julialang.org/t/specify-julia-enviroment-in-pyjulia/57776 "2021-03-23T10:52:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Post date:** [March 23, 2021, 10:52am UTC](https://discourse.julialang.org/t/specify-julia-enviroment-in-pyjulia/57776/1 "2021-03-23T10:52:37Z")

</div>

Hi!

I am using PyJulia to link Python with Julia. In Python I am using a virtual enviroment (not Conda based) inside of Python in which I am calling PyJulia - this works completely fine.

Inside of the virtual enviroment I have now activated a new Julia project, in which I can install Julia packages in - this also works.

The issue occurs when I try to import specific Julia packages, then it allows me to get access to Julia packages from the main installation when I only want to allow Julia to get packages installed in the virtual enviroment / activated enviroment.

Not completely sure how I do an easy MWE of this case, but I hope some one has experienced the same before and solved it. I think it is quite similar to:

[https://github.com/JuliaPy/pyjulia/issues/338](https://github.com/JuliaPy/pyjulia/issues/338)

But I don’t think I am doing it completely right, since I don’t understand this line clearly:

```julia
 # must be done before PyJulia initialization

```

Hope someone can help!

Kind regards
