无法在java中使用jython导入python模块



我正在使用maven和这个库来运行python文件org.pyson jython单机2.5.2

并尝试运行包含将pyarrow.parquet导入为pq,它会将错误作为ImportError:没有名为pyarrow的模块

这个模块已经使用pip-install-pyrarrow安装在我的本地上,如果使用python通过终端运行,这个文件运行良好。

请参阅此网站

https://towardsdatascience.com/a-gentle-introduction-to-apache-arrow-with-apache-spark-and-pandas-bb19ffe0ddae

安装的命令

conda install -c conda-forge pyarrow
pip install pyarrow

最新更新