1. Installing Py4J — Py4J
https://www.py4j.org/install.html1.3.1. Using easy_install or pip¶. Run pip install py4j or easy_install py4j (don’t forget to prefix with sudo if you install Py4J system-wide on a *NIX operating system).; Py4J should now be in your PYTHONPATH. The Py4J Java library is located in share/py4j/py4j0.x.jar.The exact location depends on the platform and the installation type.