title: How to install packages in Jupyter Notebook running in Docker Container
body: <p>I've tried to set up PySpark on Windows 10. After some various challenges, I've decided to use Docker Image instead, and it worked great.</p>
  <p>The <a href="https://www.knowru.com/blog/hello-world-your-first-spark-application/" rel="nofollow noreferrer">hello world</a> script is working. However, I'm not able to install any packages on Jupyter powered by Docker. Please advise.</p>
  <p>Normally, I can use the code below on Anaconda terminal:</p>
  <p><strong>Issue</strong>:</p>
  <pre><code>The following command must be run outside the IPython shell:
  
      $ pip install fastavro
  </code></pre>
  <p>I cannot find how to install INSIDE docker. Please advise.</p>
  <p><strong>Resources:</strong></p>
  <ul>
  <li>Docker image - jupyter/pyspark-notebook</li>
  <li>Operating System - Windows 10</li>
  </ul>