Spyder is IDE for python, I think this tool is very useful for anyone who want to use python.

So I want to show you installation and running it.

before doing that, my evironment setting is :

hyunyoung2@hyunyoung2-desktop:~$ uname -a      
Linux hyunyoung2-desktop 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

First If you want to install spyder or spyder3.

type in as following.

sudo apt-get install spyder3
sudo apt-get install spyder

spyder3 for python3.n.

spyder for python2.7.

But if you cannot install like this :

hyunyoung2@hyunyoung2-desktop:~$ sudo apt-get install spyder
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package spyder

you have to update your package list and upgrade all software to the latest version.

sudo apt-get update
sudo apt-get -y upgrade

hyunyoung2@hyunyoung2-desktop:~$ sudo apt-get update
Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]       
......
hyunyoung2@hyunyoung2-desktop:~$ sudo apt-get -y  upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  snap-confine
Use 'sudo apt autoremove' to remove it.
The following packages have been kept back:
  gnome-software gnome-software-common libmirclient9 linux-generic-hwe-16.04
  linux-headers-generic-hwe-16.04 linux-image-generic-hwe-16.04 python3-software-properties
  software-properties-common software-properties-gtk ubu
.....

From now on, let’s install spyder or spyder3.

type in after upgrade and update is complete.

sudo apt-get install spyder3
sudo apt-get install spyder

finally, you can run it like this

from now on, You can code it with spyder like this.

in temp.py, type in “print(“hellow World)”

after press “F5” button which means “run file”, you can check excutable like this :

Reference