简体   繁体   中英

unable to import python modules using jython in java

I am using maven and this library to run python file org.python jython-standalone 2.5.2

and trying to run python file that contains import pyarrow.parquet as pq and it is giving me error as ImportError: No module named pyarrow.

This module is already installed on my local using pip install pyarrow and this file is working fine if it's run through terminal using python.

Refer to this web site

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

command for the installation

conda install -c conda-forge pyarrow
pip install pyarrow

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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