Here too, I’d check if you apt-get install ed spyder3 or just spyder If your Anaconda environment is activated correctly, python3 and python will both resolve to the Python 3 version bundled with Anaconda (same with pip and pip3), so using versioned Python commands should never be necessary unless something is wrong with your install/config. Most of this was mentioned before you specified you were using Anaconda Python.
Remember for this project to prefer python3 to python and pip3 to pip ipython vs. Naturally, this won’t even run, leaving you permanently unable to install other packages into your OS Python, since pip itself is broken (perhaps not so bad a thing, since this should never be done). Furthermore, it seems a Python 3-only version of pip was mistakenly installed into your OS Python somehow (perhaps with python -m pip install -upgrade pip), perhaps because the ancient version of pip bundled with your macOS version didn’t recognize the Python-Requires metadata (which would answer 's question as to how this is possible, though I’m not certain of this). In the first post, your Anaconda env ( base) is not properly activated for some reason (otherwise the Anaconda-installed pip should supercede the OS one), and the pip called is the one installed in your macOS system Python (2.7), which should never be used. I cannot use ‘pip’ to install library like the following picture. Some other observations from the discussion:
In summary, these problems almost invariably come down to one of two things: I highly suggest you follow the above guide to do things correctly, up to and including re-installing Anaconda and doing things the right way from the start. We’re planning several major enhancements to this functionality in Spyder 6, now that Spyder 5 was just released.įrom the limited information provided and helping many other users with similar issues with misconfigured environments, while it sounds like you may have temporarily solved the problem for now, your solution may lead to more serious issues with your Anaconda install in the future, either due to an underlying problem (Anaconda/paths/environments not being configured/activated correctly), multiple Python installations and/or mixing pip with conda packages esp. Spyder core dev here we have an official tutorial video and a guide on working with pip, conda, and environments with Spyder.