Steps to Build a pex Environment File
-
Start a Python Docker image with the right version of Python interpreter installed. For example,
docker run -it -v $(pwd):/workdir python:3.5-buster /bin/bash
-
Install pex.
pip3 install pex
-
Build a pex environment file.
pex --python=python3 -v pyspark findspark -o …