Open xinzhuohkust opened 1 year ago
Hi, I am trying to call python in R with reticulate but UnicodeEncodeError occurs. I was wondering if you could help fix this bug. Many thanks.
reticulate
Best, Hsincho
r$> reticulate::use_python("C:/Users/python.exe") Traceback (most recent call last): File "<string>", line 1, in <module> UnicodeEncodeError: 'gbk' codec can't encode character '\ue1bb' in position 1488: illegal multibyte sequence Error in Sys.setenv(PATH = new_path) : wrong length for argument In addition: Warning message: In system(cmd, intern = intern, wait = wait | intern, show.output.on.console = wait, : running command 'C:\Windows\system32\cmd.exe /c C:\Users\xhuangcb\AppData\Local\Temp\Rtmp4AHsiG\file59b83bca4288.bat' had status 1
As a matter of fact, you cannot specify another python runtime besides the python runtime that runs radian.
Hi, I am trying to call python in R with
reticulate
but UnicodeEncodeError occurs. I was wondering if you could help fix this bug. Many thanks.Best, Hsincho