I have already saved in .bashrc file:
but i am still unable to use python2.7 ?
1 2 3 4 |
# pyenv setup, can place last in file export PATH = "$HOME/.pyenv/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv init -)" |

1 2 3 4 5 6 7 8 9 10 11 12 |
~ pyenv local 2.7 . 18 ✔ ~ python ✔ Python 3.12 . 3 (main, Apr 23 2024 , 09 : 16 : 07 ) [GCC 13.2 . 1 20240417 ] on linux Type "help" , "copyright" , "credits" or "license" for more information. >>> KeyboardInterrupt >>> ~ pyenv global 2.7 . 18 ✔ 6s ~ python ✔ Python 3.12 . 3 (main, Apr 23 2024 , 09 : 16 : 07 ) [GCC 13.2 . 1 20240417 ] on linux Type "help" , "copyright" , "credits" or "license" for more information. >>> |