Hi,

我网上查了一下,这个似乎是你Python环境的问题,你可以看看这个和你是不是类似的
https://blog.csdn.net/m0_38024592/article/details/88410878

Best,
Xingbo

小学生 <201782...@qq.com> 于2020年8月13日周四 上午11:05写道:

> 各位大佬,使用pyflink自定义udf,运行中出现这个错误,这个怎么解决呢
> Caused by: java.io.IOException: Failed to execute the command: python -c
> import pyflink;import
> os;print(os.path.join(os.path.abspath(os.path.dirname(pyflink.__file__)),
> 'bin'))
> output: Could not find platform independent libraries <prefix&gt;
> Could not find platform dependent libraries <exec_prefix&gt;
> Consider setting $PYTHONHOME to <prefix&gt;[:<exec_prefix&gt;]
> Fatal Python error: Py_Initialize: Unable to get the locale encoding
> ModuleNotFoundError: No module named 'encodings'

回复