I am trying to use the nosetests but I’m getting errors about print not having parentheses.
I noticed that after the update Antergos from 3.12 to 3.14 python 3 became default. To run python scripts syntactically written in python 2.7 I would just invoke python2.7(e.g. $ python2.7 script.py). However I am learning how to create project skeletons and using different tools like python nose, virtualenv, etc and the exercises are done in python2.7.
I don’t want to change the default python to 2.7 as this might break something on my system. After doing some research I read that adding a path to .bashrc is a safer way to tell the terminal to use python2.7 instead of 3.4. I added the following to .bashrc:
but nothing has changed unfortunately. I still get the same error message.
What am I doing wrong?
Thanks in advance.