From 14db6ec6f1563f55a107843847540ff447b3ec96 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Thu, 4 Jan 2024 12:54:25 +0000 Subject: [PATCH] update --- src/interface.jl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index b62c878..ae9e117 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -15,13 +15,14 @@ using ..type, ..utils # pythoncall setting # # ---------------------------------------------------------------------------- # # Ref: https://github.com/JuliaPy/PythonCall.jl/issues/252 -# by setting the following variables, PythonCall.jl will use system python or conda python and -# packages installed by system or conda -# if these setting are not set (comment out), PythonCall will use its own python and package that +# by setting the following variables, PythonCall.jl will use: +# 1. system's python and packages installed by system (via apt install) +# or 2. conda python and packages installed by conda +# if these setting are not set (comment out), PythonCall will use its own python and packages that # installed by CondaPkg.jl (from env_preparation.jl) -# ENV["JULIA_CONDAPKG_BACKEND"] = "Null" -# systemPython = split(read(`which python`, String), "\n")[1] -# ENV["JULIA_PYTHONCALL_EXE"] = systemPython # find python location with $> which python ex. raw"/root/conda/bin/python" +# ENV["JULIA_CONDAPKG_BACKEND"] = "Null" # set condapkg backend = none +# systemPython = split(read(`which python`, String), "\n")[1] # system's python path +# ENV["JULIA_PYTHONCALL_EXE"] = systemPython # find python location with $> which python ex. raw"/root/conda/bin/python" # using PythonCall # const py_agents = PythonCall.pynew()