繁体   English   中英

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

[英]unable to import python modules using jython in java

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

并尝试运行包含import pyarrow.parquet as pq的 python 文件,它给我的错误是ImportError: No module named pyarrow.

这个模块已经使用 pip install pyarrow 安装在我的本地,如果它使用 python 通过终端运行,这个文件工作正常。

参考这个 web 网站

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

安装命令

conda install -c conda-forge pyarrow
pip install pyarrow

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM