# Importing local python code directory function in Julia

**URL:** <https://discourse.julialang.org/t/importing-local-python-code-directory-function-in-julia/116315>\
**Category:** Offtopic\
**Tags:** python, pythoncall\
**Created:** [June 27, 2024, 3:43pm UTC](https://discourse.julialang.org/t/importing-local-python-code-directory-function-in-julia/116315 "2024-06-27T15:43:19Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [June 28, 2024, 3:49pm UTC](https://discourse.julialang.org/t/importing-local-python-code-directory-function-in-julia/116315/9 "2024-06-28T15:49:26Z")

</div>

See the documentation of CondaPkg.jl:

> **[GitHub - JuliaPy/CondaPkg.jl: Add Conda dependencies to your Julia project](https://github.com/JuliaPy/CondaPkg.jl)**
>
> Add Conda dependencies to your Julia project. Contribute to JuliaPy/CondaPkg.jl development by creating an account on GitHub.

```julia
julia> using CondaPkg
julia> # now press ] to enter the Pkg REPL
pkg> conda status # see what we have installed
pkg> conda add python perl # adds conda packages
pkg> conda pip_add build # adds pip packages
pkg> conda rm perl # removes conda packages
pkg> conda run python --version # runs the given command in the conda environment
pkg> conda update # update conda and pip installed packages

```

In particular note the `conda pip_add build` command to help you load Python packages installed via pip.

> **[Guide · PythonCall & JuliaCall](https://juliapy.github.io/PythonCall.jl/stable/pythoncall/)**
>
> Documentation for PythonCall & JuliaCall.

In particular, see

> **[Reference · PythonCall & JuliaCall](https://juliapy.github.io/PythonCall.jl/stable/pythoncall-reference/#PythonCall.Core.pyeval)**
>
> Documentation for PythonCall & JuliaCall.

---

_[View the full topic](https://discourse.julialang.org/t/importing-local-python-code-directory-function-in-julia/116315)._
