This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF5 SDK for Mesh v2.2.0 - Python 2.7 and 3 Coexistence

So what steps do we need to take to have these two different Python versions both installed & usable at the same time on the same machine?

The 'Installing the toolchain' page says that tools have to be in the PATH - but, surely, it is going to matter what order they appear in the PATH ?

Parents
  • I agree that this is an issue. Of course, you could always switch which location is first in the path to switch between Python 2 & 3, but this is a time-consuming & annoying process. What I have done is keep the Python 2 application named python & renamed the Python 3 application python3. That way, I can either call python or python3 & do not need to make any changes in the path. Naturally both applications need to be part of the path. This may not be the best solution, but it works fine for me.

Reply
  • I agree that this is an issue. Of course, you could always switch which location is first in the path to switch between Python 2 & 3, but this is a time-consuming & annoying process. What I have done is keep the Python 2 application named python & renamed the Python 3 application python3. That way, I can either call python or python3 & do not need to make any changes in the path. Naturally both applications need to be part of the path. This may not be the best solution, but it works fine for me.

Children
No Data
Related