Could not find py4j jar when installed with pip install on Windows
adoebber opened this issue · comments
When py4j is installed using pip install py4j (pip version 22.3.1, Python 3.11, Windows 10), I get the following error:
>>> import py4j.java_gateway as jg
>>> port = jg.launch_gateway()
File "C:\Users\UserName\AppData\Roaming\Python\Python311\site-packages\py4j\java_gateway.py", line 297, in launch_gateway
raise Py4JError("Could not find py4j jar at {0}".format(jarpath))
py4j.protocol.Py4JError: Could not find py4j jar at
related to #266