title: Installing libraries in Spyder (Anaconda)
body: <p>I just recently uninstalled python and anaconda and reinstalled Anaconda3 only (I read that Anaconda installs python for you). I'm using Python 3.8.3 through Spyder in Anaconda3.</p>
  <p>Previous to the reinstall, I never had issues with the <code>pip</code> and <code>conda</code> commands in spyder</p>
  <p>Now I'm getting these errors:</p>
  <pre><code>runcell(0, 'C:/Users/user1/.spyder-py3/temp.py')
    File &quot;C:\Users\user1\.spyder-py3\temp.py&quot;, line 9
      pip install fastai
          ^
  SyntaxError: invalid syntax
  
  
  runcell(0, 'C:/Users/user1/.spyder-py3/temp.py')
    File &quot;C:\Users\user1\.spyder-py3\temp.py&quot;, line 8
      conda install -c fastai fastai
  </code></pre>
  <p>These posts have been unhelpful:
  <a href="https://stackoverflow.com/questions/50963625/pip-install-in-spyder">Pip install in Spyder</a>
  <a href="https://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda">What is the difference between pip and conda?</a></p>
  <p>Is there some simple solution for this? E.g when I installed Anaconda for the first time I never had these issues.</p>