Guest User

Untitled

a guest
Dec 10th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. ls -l /usr/bin/python*
  2.  
  3. # Output:
  4. /usr/bin/python -> /etc/alternatives/python
  5. /usr/bin/python2 -> python2.7
  6. /usr/bin/python2.7
  7. /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
  8. /usr/bin/python2-config -> python2.7-config
  9. /usr/bin/python3 -> python3.6
  10. /usr/bin/python3.5
  11. /usr/bin/python3.5-config -> x86_64-linux-gnu-python3.5-config
  12. /usr/bin/python3.5m
  13. /usr/bin/python3.5m-config -> x86_64-linux-gnu-python3.5m-config
  14. /usr/bin/python3.6
  15. /usr/bin/python3.6m
  16. /usr/bin/python3-config -> python3.5-config
  17. /usr/bin/python3m -> python3.5m
  18. /usr/bin/python3m-config -> python3.5m-config
  19. /usr/bin/python-config -> python2.7-config
  20.  
  21. sudo ln -s python3.6 python3
  22.  
  23. sudo update-alternatives --config python
  24.  
  25. # My output in this case:
  26. [sudo] password for m93:
  27. There are 3 choices for the alternative python (providing /usr/bin/python).
  28.  
  29. Selection Path Priority Status
  30. ------------------------------------------------------------
  31. 0 /usr/bin/python3.6 2 auto mode
  32. 1* /usr/bin/python2.7 1 manual mode
  33. 2 /usr/bin/python3.5 1 manual mode
  34. 3 /usr/bin/python3.6 2 manual mode
Add Comment
Please, Sign In to add comment