4

I'm currently using Ubuntu 16.04.

When I try to install spyder3 from the repositories using

apt-get install spyder3

It installs spyder2 for python3.5. so I get the splash screen, the interface and the configuration folder as same as the spyder2.

How do I install spyder3?

Elder Geek
  • 36,023
  • 25
  • 98
  • 183

1 Answers1

5

In order to install spyder3 package you must first enable the universe repository. Once that step is completed you will be able to install the spyder3 package which currently actually provides 2.3.0 with the following command:

sudo apt-get install spyder3

Note: If you wish to eliminate the spyder2 configuration files as well as the package you may wish to backup to avoid any unintended consequences and then purge the spyder2 package with sudo apt-get purge --auto-remove spyder

To obtain the latest version of spyder (currently 3.1.4)

If you use anaconda:

conda update qt pyqt
conda update spyder

Only If you don't use anaconda

pip install -U spyder

If you use anaconda the pip command could break your installation. This is of small concern if you follow my advice about creating a backup and a potentially large problem if you don't.

Sources:

http://packages.ubuntu.com/search?suite=all&section=all&arch=any&keywords=spyder3&searchon=names

How do I enable the "Universe" repository?

How can you completely remove a package?

https://github.com/spyder-ide/spyder/releases

Elder Geek
  • 36,023
  • 25
  • 98
  • 183
  • I'm testing this and posting the results soon. I already imagined that it was a repository issue, or detail. – Isaac Curvelo May 08 '17 at 14:16
  • 1
    Actually, I just checked and the universe repository is already enabled, and I'm installing spyder from there. In fact, if i run "apt-cache policy spyder3" I get

    spyder3: Installed: (none) Candidate: 2.3.8+dfsg1-1build1 Version table: 2.3.8+dfsg1-1build1 500 500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages 500 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages

    – Isaac Curvelo May 08 '17 at 18:34
  • Universe is enabled? Then you can skip that step. Yes, Installed (none) means it is not installed. Did you attempt installation as described in my answer? The package version available that you are getting as a Candidate matches the package version shown in the package search link at the top of my answer for spyder3 so that looks correct. – Elder Geek May 08 '17 at 19:16
  • Yes, I did. At the moment I issued the "apt-cache policy spyder3", I already have unninstalled spyder. I tried to install again just before posting this, and the result was the same, I got Spyder2. – Isaac Curvelo May 08 '17 at 19:31
  • That's odd. What's the output of dpkg -l spyder3 ? – Elder Geek May 08 '17 at 19:37
  • Ahh, It appears we've been victims of rounding. 2.8.3 is what was released in the spyder3 package. Editing answer. – Elder Geek May 08 '17 at 19:49
  • @IsaacCurvelo Updated answer. – Elder Geek May 08 '17 at 20:32
  • I didn't understand. What do you mean by victims of rounding? Did you found out what the error is? – Isaac Curvelo May 09 '17 at 18:59
  • I understood that the spyder 2.8.3 is what you get from the spyder3 package. But in other OS (ubuntu gnome 16.04) I could install spyder3 out of the box with the command "sudo apt-get install spyder 3" – Isaac Curvelo May 09 '17 at 19:37
  • I finnaly managed to resolve it. You were right. The version of spyder in pip is up to date! Thanks! – Isaac Curvelo May 09 '17 at 23:12
  • @IsaacCurvelo I'm glad we got it sorted! I'm always eager to help! – Elder Geek May 10 '17 at 14:30