Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Install spyder 4 in ubuntu 20.04

Writer Matthew Harrington

I just want to install spyder in its lastest version. I'm running on ubuntu 20.04. First i tried installing anaconda but I didn't like it because I don't want to use anaconda environment. So i uninstalled anaconda and now i want to install just spyder and upgrade it to it lastest version. By the moment I can run spyder 3, but it doesn't recognize me main packages. Like, for example, pandas. Any help? Thanks!

3 Answers

This worked for me ubuntu 20.04:

  1. Install sypder3 from linux terminal sudo apt-get install spyder

  2. Then upgrade to spyder 5 sudo python3 -m pip install --upgrade spyder

You will have both spyder 3 and spyder 5 running side by side. You can choose to keep both or delete one (or delete both!)

Anaconda makes your life very easy in terms of managing packages. I assume that when you said you didn't like Anaconda environment you mean "Navigator". Sure not the best way to manage packages,but you don't have to use it. You can simply use conda on your terminal. When doing so you don't always have to worry about which dependencies you need, conda figures that out for you (in most cases).

My approach feels a bit overkill but it worked like a charm, and I didn't find an other way. I wanted to use pipenv and not anaconda.

I used pipenv to manage venvs and isolate the environment where I would install spyder (similar to creating an environment dedicated to spyder in anaconda).

First, install pipenv :pip install pipenv

After that I created a directory where I'd initialize my spyder env using pipenv :

cd
mkdir spyder

Then I initialized the venv :pipenv installand installed spyder :pipenv install spyder

To run spyder, you need to activate the venv first :

pipenv shell
spyder &

or ask pipenv to run the command using the venv :

pipenv run spyder &

This has the downside of creating two rather useless Pipfile and Pipfile.lock files, but the upside of having spyder installed in an isolated environment, without Anaconda.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy