title: Why do Python scripts on HDInsight fail with 'No module named numpy'?
body: <p>I've created a HDInsight cluster with <a href="http://spark.apache.org" rel="nofollow">Apache Spark</a> using <strong>Script Actions</strong> as described in <a href="http://azure.microsoft.com/nl-nl/documentation/articles/hdinsight-hadoop-spark-install/" rel="nofollow">Install and use Spark 1.0 on HDInsight Hadoop clusters</a>:</p>
  
  <blockquote>
    <p>You can install Spark on any type of cluster in Hadoop on HDInsight using <strong>Script Action</strong> cluster customization. Script action lets you run scripts to customize a cluster, only when the cluster is being created. For more information, see <a href="http://azure.microsoft.com/en-us/documentation/articles/hdinsight-hadoop-customize-cluster" rel="nofollow">Customize HDInsight cluster using script action</a>.</p>
  </blockquote>
  
  <p>I have ran a basic Python (word count sample) script that worked, but when I start a Python script that uses <code>NumPy</code> I get this importer error: <code>'No module named numpy'</code> raised on the nodes. </p>
  
  <p>Why can't I import the package since NumPy was (supposed to be) installed out-of-the-box on a HDInsight cluster? Is there a way to install NumPy on the nodes? HDInsight doesn't allow you any access to the nodes.</p>