Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. mv /usr/bin/python /usr/bin/python-old
  2. sudo ln -fs /usr/bin/python3 /usr/bin/python
  3.  
  4. -bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory
  5.  
  6. sudo ln -fs /usr/bin/python3 /usr/bin/python
  7.  
  8. alias python="/usr/bin/python3.5"
  9.  
  10. # start by registering python2 as an alternative
  11. alternatives --install /usr/bin/python python /usr/bin/python2 50
  12. # register python3.5 as an alternative
  13. alternatives --install /usr/bin/python python /usr/bin/python3.5 60
  14. # Select the python to use
  15. alternatives --config python
  16.  
  17. man alternatives
  18.  
  19. update-alternatives --install /usr/bin/python python /usr/bin/python2 50
  20.  
  21. update-alternatives --install /usr/bin/python python /usr/bin/python3.5 60
  22.  
  23. update-alternatives --config python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement