matplotlib4j icon indicating copy to clipboard operation
matplotlib4j copied to clipboard

How to change the python issue

Open linjiaqin opened this issue 4 years ago • 3 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,"

linjiaqin avatar Nov 11 '20 03:11 linjiaqin

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"));

sh0nk avatar Nov 22 '20 16:11 sh0nk

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 avatar Jan 25 '21 18:01 Leader-board

@Leader-board Thanks for your suggestion! Added here. https://github.com/sh0nk/matplotlib4j#other-way-to-specify-your-python-environment

sh0nk avatar Mar 09 '21 18:03 sh0nk