1

Okay, so I have python 3.5 on my system. Whenever I open a .py file, Idle3 starts, thus pressing F5 will instantly run my code.

However I need python 2.7 now for an assignment. In terminal I've installed 'idle' so, I can open idle and idle3 there easily.

My problem is, I can't change my .py files' default application to idle. It only sees idle3, so I can't open my files with idle(2.7) as default.

Is there any simple workaround for that?

MattSom
  • 311
  • 1
  • 2
  • 11
  • Try this but in reverse http://askubuntu.com/questions/320996/how-to-make-python-program-command-execute-python-3#321000 – Norr Mar 27 '17 at 11:21
  • i suggest this you use alias or just run `idle file.py` in the terminal.. – saviour123 Mar 27 '17 at 11:36
  • typing `python --version` into terminal I get: `-bash: /usr/local/bin/python2.7: No such file or directory`, but `python2 --version` and `python3 --version` works fine. – MattSom Mar 28 '17 at 02:28

0 Answers0