Question
Python version change I use a MacBook version 12.1 I want to change the python version terminal -(base) hyeyunpark@Hy-Mac ~ % python --version Python 3.9.7
Python version change
I use a MacBook version 12.1
I want to change the python version
terminal -(base) hyeyunpark@Hy-Mac ~ % python --version
Python 3.9.7
(base) hyeyunpark@Hyeyuns-Mac ~ %
I deleted /Library/Frameworks/Python.framework/Versions/3.9 (now only have Library/Frameworks/Python.framework/Versions/3.10)
and when I used the python10 keyword, it showed
terminal -
(base) hyeyunpark@Hyeyuns-Mac ~ % python3.10 --version
Python 3.10.9
(base) hyeyunpark@Hyeyuns-Mac ~ % ln -s /usr/local/bin/python3.10 /usr/local/bin/python
ln: /usr/local/bin/python: File exists
(base) hyeyunpark@Hyeyuns-Mac ~ % python3.10 --version
Python 3.10.9
(base) hyeyunpark@Hyeyuns-Mac ~ % /usr/local/bin/python3.10 --version
Python 3.10.10
(base) hyeyunpark@Hyeyuns-Mac ~ % echo $PATH
/opt/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin
(base) hyeyunpark@Hyeyuns-Mac ~ % export PATH="/usr/local/bin:$PATH"
(base) hyeyunpark@Hyeyuns-Mac ~ % python --version
Python 3.9.7
(base) hyeyunpark@Hyeyuns-Mac ~ %
I want to change Python 3.10.9
what is the problem ??
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started