At least one can run
python -c 'import sys; print(sys.path)' to get the python module path.
However, my problem is that I’m using julia with the
PyCall package. In Julia, when I run following command:
julia> sys=PyCall.pyimport("sys") julia> sys.path
the returned result is limited in only python installation directory.
The path of other python packages that has been installed with
python3.withPackages do not appear.
My question is that
- Is there a way to let Julia PyCall to recognize theses packages (e.g., matplotlb)
- If the 1st requirement cannot be fulfilled, can I get a list of python path in a clean way (not by using
pthon -c)? then I can feed it to PyCall later.