Registry / devops / juliapkg

juliapkg

JSON →
library0.1.24pypypi✓ verified 85d ago

JuliaPkg is a Python library that allows managing Julia installations and Julia packages directly from within Python. It provides functions to add specific Julia versions, install Julia packages, and ensure they are available for use, often in conjunction with PyJulia (the `julia` Python package) for direct interaction. It aims to simplify the setup of Julia environments for Python users. The current version is 0.1.23, and it's actively maintained with regular releases.

pip install juliapkg
INSTALL
IMPORT
SIG · JULIAPKG
J
juliapkg
devopspythonv0.1.24
Install
1.8s avg
Import
383ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.24 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.398s · 19MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 1.8s · import 0.368s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

juliapkg
import juliapkg
add_julia
juliapkg.add_julia(...)
add
juliapkg.add(...)
install
juliapkg.install()

Demonstrates how to add a specific Julia version and a Julia package, then install them to set up a managed Julia environment from Python.

import juliapkg import os # Add a specific Julia version (e.g., 1.9.4). # If not present, juliapkg will download and install it into a managed location. juliapkg.add_julia("1.9.4") # Add a Julia package to the managed environment. juliapkg.add("Example") # Install all added Julia versions and packages. # This ensures they are available in the Python-managed Julia environment. juliapkg.install() print("Julia 1.9.4 and 'Example' package are installed and ready.") print("To use them, typically you would interface with PyJulia:") print(" from julia import Julia") print(" jl = Julia()") print(" jl.eval('using Example; Example.hello()')")
Debug
Known issues
gotchaAlways call `juliapkg.install()` after adding new Julia versions or packages. Forgetting this step will result in the Julia environment not being updated, and newly added items will not be available.
fix
Ensure `juliapkg.install()` is explicitly called after any `juliapkg.add_julia()` or `juliapkg.add()` calls.
affects: All versions
gotchaWhen using `juliapkg` with `PyJulia` (the `julia` Python package), ensure `PyJulia` is configured to use the Julia installation managed by `juliapkg`. By default, `PyJulia` will try to find a Julia executable in your PATH or via `JULIA_PATH` / `JULIA_DEPOT_PATH` environment variables. `juliapkg` sets up the environment variables correctly for its managed Julia, but explicit setup might be needed if you have multiple Julia installations.
fix
Usually, `PyJulia` will pick up the `juliapkg`-managed Julia automatically if `juliapkg.install()` has been run. If issues arise, consider setting `JULIA_BINDIR` or `JULIA_DEPOT_PATH` environment variables manually to point to the `juliapkg`-managed Julia paths before importing `julia`.
affects: All versions
gotchaNetwork connectivity issues can prevent Julia versions or packages from being downloaded and installed. This can manifest as stalled downloads or connection errors during `juliapkg.add_julia()` or `juliapkg.install()`.
fix
Ensure stable internet connectivity. Check proxy settings or firewall rules if in a corporate environment. Retry the installation.
affects: All versions
Errors
Common errors & fixes
Julia executable not found. Please install Julia.
`juliapkg` could not find or successfully install a Julia executable for the requested version, or a previously managed Julia installation became inaccessible.
fix
Ensure you have called `juliapkg.add_julia()` with a valid version (or no arguments for the latest stable) and then `juliapkg.install()`. Check network connectivity if it's a new installation. If a specific version is requested, verify it exists and is supported.
ERROR: LoadError: ArgumentError: Package XXX not found in current path.
A Julia package was added via `juliapkg.add("XXX")` but `juliapkg.install()` was not called afterward, or the Julia environment wasn't properly re-activated, or the package failed to install.
fix
After adding any Julia package with `juliapkg.add()`, always call `juliapkg.install()` to ensure the package is downloaded and configured in the Julia environment. If the error persists, check the output of `juliapkg.install()` for any specific Julia package installation errors.
Upgrade
Version history
0.1.24latest on PyPI · released May 31, 2026
Audit
Dependencies
Julia (language)requiredjuliapkg's primary function is to manage Julia installations and packages. Without Julia itself, the library has no function.
julia (PyJulia)optionalWhile juliapkg manages Julia, PyJulia is the common way to interact with the managed Julia environment from Python.
Agent activity
4 hits · last 30 days
node
4
Resources
juliapkg — pip install juliapkg · libregistry