'Module not installed

I am writing a Dataframe to a Parquet file with Dask using the following code:

df.to_parquet('Filepath', engine='pyarrow')

Pyarrow module is required to run this code and it runs fine on my editor.

But when I package the code using Pyinstaller and try to run the .exe file I get the error

'pyarrow' not installed

How to fix this?

Note - I'm using the same python environment for Pyinstaller as well as my editor.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source