Hi,
the PythonCall.jl equivalent of the explicit adding of site-packages
also seems to work here:
ENV["JULIA_PYTHONCALL_EXE"] = "C:/Research Software/Python/Virtual Environments/venv_1/Scripts/python.exe"
ENV["JULIA_CONDAPKG_BACKEND"] = "Null"
using Pkg
Pkg.add("PythonCall")
using PythonCall
pyimport("site").addsitedir("C:/Research Software/Python/Virtual Environments/venv_1/Lib/site-packages")
# Alternatively, pyimport("sys").path.insert(0, "C:/Research Software/Python/Virtual Environments/venv_1/Lib/site-packages") also seems to work.
# It's probably safest to add to both site and path.
Pkg.add("PythonPlot")
Pkg.add("Plots")
using Plots
pythonplot()
x = [1,2,3,4,5]
y = x
plot(x,y)