running python from terminal gives python 3.6, even though the sym link in usr/bin for python is set to 2.7. I also don't see an alias for python installed, when I type alias in the terminal. catkin_make seems to use python 3.6 instead of the 2.7 that it needs...

I only find posts how of how to set ubuntu to default to 3.6. ... what do I do the other way around, to default back to 2.7 after I installed Anaconda?

Edit: How do I switch back to python2 after Anaconda set python3 as the default? this worked to get the default python command to call python 2.7 again., but catkin_make still calls the 3.6 python...

  • Can you include the output of type -a python? – Byte Commander Mar 30 '18 at 15:06
  • @Jannis could you please answer your own question and validate it so that it's not an edit of your question? Answers in questions seem bad practice to me and unconvenient to read. Thanks. – avazula Mar 30 '18 at 15:16
  • Changing the default python back to calling python 2.7 did not fix my original problem. catkin_make still finds and calls python 3.6 -- Using PYTHON_EXECUTABLE: /home/username/miniconda3/bin/python – Jannis Mar 30 '18 at 15:19
  • type -a python --> python is /usr/bin/python – Jannis Mar 30 '18 at 15:20
  • 1
    VTR as it appears that it's possible to invoke catkin with a specific python version – Elder Geek Mar 30 '18 at 18:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.