# Manage Python packages to use in Julia

**URL:** <https://discourse.julialang.org/t/manage-python-packages-to-use-in-julia/92584>\
**Category:** Package Management\
**Tags:** question\
**Created:** [January 6, 2023, 12:00am UTC](https://discourse.julialang.org/t/manage-python-packages-to-use-in-julia/92584 "2023-01-06T00:00:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmanuelCastanho](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/emanuelcastanho/32/45245_2.png) [@EmanuelCastanho](https://discourse.julialang.org/u/EmanuelCastanho)\
**Post date:** [January 6, 2023, 12:00am UTC](https://discourse.julialang.org/t/manage-python-packages-to-use-in-julia/92584/1 "2023-01-06T00:00:23Z")

</div>

I am using Python packages in Julia that need to be installed with `Conda.jl`.

I want those packages to be organised on an isolated environment (not root) to prevent conflicts. The goal is to use `PyCall.jl`.

It says on the Conda.jl documentation that:

> If you are installing Python packages for use with PyCall, you must use the root environment.

Is this really mandatory?

I created a Julia project using `generate` and added Conda, then I added a package to a specific environment `Conda.add("libnetcdf", :my_env)`, this created `/Users/user/.julia/conda/3/envs/my_env`.

How can `PyCall.jl` read the packages from `my_env` and not the Root? Can this be achieved with `ENV["PYTHON"] = "... path of the python executable ..."`?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [January 6, 2023, 12:19am UTC](https://discourse.julialang.org/t/manage-python-packages-to-use-in-julia/92584/2 "2023-01-06T00:19:30Z")

</div>

You might try using [CondaPkg.jl](https://github.com/cjdoris/CondaPkg.jl) with [PythonCall.jl](https://github.com/cjdoris/PythonCall.jl), as the newer CondaPkg has much better support for environments and Julia projects.
