Thanks @mkitti. How do you execute the file activate.sh ? Every time you start a Julia sesion or only once?
Besides I would like to know what is the value of $CONDA_EXE in you case.
Sorry I have a mess. Could you tell which are the steps I should follow in order to use a conda environment in PythonCall within a Julia repl or VS code ?
Thank you very much.
If you were using the julia package in conda-forge, that activate script would be copied into $CONDA_PREFIX/etc/conda/activate.d and be run automatically. Because you are not using the julia package in conda-forge, you need copy that script into that folder. Then deactivate and activate the conda environment.
Then CondaPkg.jl should then pick up on the environment variables set, and use the existing conda environment. It will also configure Conda.jl and use a Julia depot within your conda environment.
If you were using the julia package in conda-forge, that activate script would be copied into $CONDA_PREFIX/etc/conda/activate.d and be run automatically. Because you are not using the julia package in conda-forge, you need copy that script into that folder. Then deactivate and activate the conda environment
Ok, I hadn’t realized that the ENV variables inside the julia repl are the same environment variables of a normal terminal. Now it is a bit clearer. However, I have followed this steps and I still cant use a python package: