【问题标题】:unable to import python modules using jython in java无法在java中使用jython导入python模块
【发布时间】:2021-04-19 16:35:42
【问题描述】:

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

并尝试运行包含 将 pyarrow.parquet 导入为 pq 它给了我错误 ImportError: No module named pyarrow.

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

【问题讨论】:

标签: java python jython pyarrow


【解决方案1】:

参考这个网站

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

安装命令

conda install -c conda-forge pyarrow
pip install pyarrow

【讨论】:

    猜你喜欢
    • 2013-01-30
    • 2011-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多