I am using Julia v0.6. I need to execute the following julia commands for a test:
ENV["PYTHON"] = "<path to a specific conda virtual env python>" using MyPackage # needs to call the above python
But, I am trying to do this in a Dockerfile so would prefer to execute this from the command line using
julia -e '<some commands>'. For example
julia -e 'using MyPackage' is ok.
How can I also tell julia to set its
PYTHON environment variable from the command-line so that it will effect the
using MyPackage call.
I tried setting an extern
JULIA_PYTHON environment variable but that didn’t work.