python 3 installed over 2.7, incompatability with existing programs

asked 2020-07-06 18:12:53 -0500

ildaniel gravatar image

When I was first only using ROS on this computer I had projects working nice. Over the weekend I installed Python 3.6.9 for a python project, and ROS has been messed up.

Upon writing python --version OR python3 --version, I see:

Python 3.6.9

There are also problems with pip.. pip --version and pip3 --version yields:

pip 20.1.1 from /home/daniel/.local/lib/python3.6/site-packages/pip (python 3.6)

Errors also arise when calling ROS nodes, from the python 2.7 folder... As installing python was the only thing that changed I'm guessing/hoping there is only some redirecting to do.

I think I installed python3 and pip3 over the originals, somehow. Any advice on how to reverse this? Thank you!

edit retag flag offensive close merge delete

Comments

This probably isn't going to help in your current situation, but I use pyenv to manage different versions of Python and the pyenv-virtualenv plugin to manage virtual environments. Together, these make it incredibly easy to work with different versions of Python

jayess gravatar image jayess  ( 2020-07-06 18:37:25 -0500 )edit