title: Install packages in conda terminal jupyter amazon sagemaker
body: <p>I have a project in Amazon-Sage-Maker. For this, I have to uninstall specific packages and install others in the terminal. But every time I close or stop the instance I have to go to the terminal and make all the installations again. Why is this happening?</p>
  
  <p>The package with which I am experimenting with this trouble is psycopg2:</p>
  
  <pre><code>import psycopg2
  </code></pre>
  
  <p>Gives me a warning that suggests that I should uninstall it and install psycopg2-binary.
  So I open the terminal and code:</p>
  
  <pre><code>pip uninstall psycopg2
  </code></pre>
  
  <p>Then in the notebook, I code:</p>
  
  <pre><code>import psycopg2
  </code></pre>
  
  <p>And have no problem, but if I close and open the instance back, I get the same error and have to go through all the process again. </p>