SHARE
TWEET

Untitled

a guest Jun 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top