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.
Previous to the reinstall, I never had issues with the pip
and conda
commands in spyder
Now I'm getting these errors:
runcell(0, 'C:/Users/user1/.spyder-py3/temp.py')
File "C:\Users\user1\.spyder-py3\temp.py", line 9
pip install fastai
^
SyntaxError: invalid syntax
runcell(0, 'C:/Users/user1/.spyder-py3/temp.py')
File "C:\Users\user1\.spyder-py3\temp.py", line 8
conda install -c fastai fastai
These posts have been unhelpful: Pip install in Spyder What is the difference between pip and conda?
Is there some simple solution for this? E.g when I installed Anaconda for the first time I never had these issues.