sh0nk / matplotlib4j

Matplotlib for java: A simple graph plot library for java, scala and kotlin with powerful python matplotlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change the python issue

linjiaqin opened this issue · comments

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.