title: (Jupyter Notebook) ModuleNotFoundError: No module named 'pandas'
body: <p>In my terminal, I ran:</p>
  <pre><code>pip install pandas
  pip3 install pandas
  </code></pre>
  <p>Installation seemed to go well. When I write some code in a file and execute it in my terminal (prompting 'python filename.py' or 'python3 filename.py'), the pandas library can be imported and used without a problem. However, when using Jupyter Lab and Jupyter Notebook, and I get this error when trying to import pandas:</p>
  <pre><code>ModuleNotFoundError Traceback (most recent call last)
  &lt;ipython-input-1-38d4b0363d82&gt; in &lt;module&gt;
  ----&gt; 1 import pandas
  
  
  ModuleNotFoundError: No module named 'pandas'
  </code></pre>
  <p>It seems like Jupyter Notebook does not recognize this library. Very confused as of why and what I should do. FYI reinstalling anaconda did not help, and I am using 'pip' and 'pip3' to install libraries.</p>