-
I have a Julia project that I sync over the cloud in my work and home computers. I've been having a lot of delay and sync problems with this project, and only now I've realized why: PythonCall.jl makes a local folder, in the same directory as Project.toml, that has thousands and thousands of files, which is a bad idea for any online cloud-based syncing software. The folder is called .CondaEnv. How can I tell PythonCall.jl to not make this local folder, and instead make it somewhere else, like in e.g., my julia package installation folder? The documentation yields 0 results when I search "CondaEnv". I believe there should be something in the docs about this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I've found this in the docs now, when searching for conda instead of It tells me that I can specify a Python directory. I don't have python and I am fine letting PythonCall.jl do all the configuration. I trust it more than me. So the question remains, is there a way to tell PythonCall.jl to install python itself, just not locally on the same folder as my Project.toml? |
Beta Was this translation helpful? Give feedback.
From here: https://github.com/JuliaPy/CondaPkg.jl?tab=readme-ov-file#conda-environment-path
it appears that if I set something like
ENV["JULIA_CONDAPKG_ENV"] = "@python"
before installing, it will use a shared environment instead.But, for this to work I need to first install CondaPkg.jl by itself, so that it registers the above option. And then use also the option
ENV["JULIA_CONDAPKG_BACKEND"] = "Current"
.So, the solution is:
Set
in your startup.jl. Then Install
CondaPkg
by itself. Then installPythonCall
.