Creating an package (and eventually app) with Python dependencies

I haven’t used together myself, just know about the issue and solution in the doc (why I wrote read carefully, didn’t it work?):

  • To force PythonCall to use the same Python interpreter as PyCall, set the environment variable JULIA_PYTHONCALL_EXE to "@PyCall". Note that this will opt out of automatic dependency management using CondaPkg.
  • Alternatively, to force PyCall to use the same interpreter as PythonCall, set the environment variable PYTHON to PythonCall.C.CTX.exe_path and then Pkg.build("PyCall"). You will need to do this each time you change project, because PythonCall by default uses a different Python for each project.
1 Like