matplotlib4j
matplotlib4j copied to clipboard
How to change the python issue
Hello, I installed my python in another path, not in the default user path, so it occur the exception "DEBUG - Commands... : [python, C:\Users\LINJIA~1\AppData\Local\Temp\1605064137269-0\exec.py] java.io.IOException: Cannot run program "python": CreateProcess error=2,"
Hi @linjiaqin . It's not on README, but direct path to python binary is supported as below on Plot instance creation. Please refer to the code here.
Plot plt = Plot.create(PythonConfig.pythonBinPathConfig("path/to/python"));
As someone who spent hours trying to figure out a solution to the above issue, it would be very much helpful if you could put this in the README. Thanks in advance.
@Leader-board Thanks for your suggestion! Added here. https://github.com/sh0nk/matplotlib4j#other-way-to-specify-your-python-environment