1 Answer
- Newest
- Most votes
- Most comments
2
Hello.
I think "/usr/bin/python3" is a symbolic link pointing to "Python 3.9.15".
So, I thought it would be a good idea to delete the symbolic link and then create a new symbolic link pointing to "Python 3.12".
Why not try setting up a symbolic link as shown below?
rm /usr/bin/python3
ln -s $(which python3.12) /usr/bin/python3
Relevant content
- Accepted Answerasked a year ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 9 months ago
Hello Riku_Kobayashi, thank you very much for answering me. I tried your proposal but unfortunately it didn't work. Anyway, I continued researching and managed to find a solution, I don't remember where I found it because I was trying several hacks. The following solution worked for me:
echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bashrc source ~/.bashrc echo "Python version $(python3 --version)" >> return 3.12.4 (is what I needed)
And the complete flow looked like: