How do I get Python libraries in pyspark?
<p>I want to use matplotlib.bblpath or shapely.geometry libraries in pyspark.</p>

<p>When I try to import any of them I get the below error:</p>

<pre><code>&gt;&gt;&gt; from shapely.geometry import polygon
Traceback (most recent call last):
 File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: No module named shapely.geometry
</code></pre>

<p>I know the module isn't present, but how can these packages be brought to my pyspark libraries?</p>