change the default python version mac

#install or update brew
$ brew install pyenv
#install
$ pyenv install 3.7.3
#make default
$ pyenv global 3.7.3
# and verify
$ pyenv version
3.7.3 (set by /Users/mbbroberg/.pyenv/version)
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
#reset the current shell
$ exec $0 
$ which python
#/Users/mbbroberg/.pyenv/shims/python
$ python -V
$ pip -V
#pip 19.0.3 from /Users/mbbroberg/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)

4
5

                                    # it is said not to do but I used it anyway, because of the conveniency
$ echo "alias python=/usr/local/bin/python3.7" >> ~/.zshrc 

4 (5 Votes)
0
4
6
Escapist29 120 points

                                    [ -e ~/.profile ] && . ~/.profile

4 (6 Votes)
0
3.33
6
Swapna 230 points

                                    ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python

3.33 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
mac set python 3.9 as default set python3 as default on mac mac default to python 3 change which python version is called macos change python 3 to default macbook how to make python 3 as default in mac how to update python versionin mac setting python3 as default mac set python 3.9 as default mac mac default python version not updating change python version mac terminal how to change default python to python3 mac default python on mac 2.7 how to change the default python version in bash in mac does change python version on macos recommend macos change python version mac os default python3 how to set default python version mac how to set default python version to 3.8.3 mac set default python macos command python 2 is still default mac mac os set python 3 as default change python version in terminal mac update version python mac how to update my python version mac how to make python3 default in mac how to make python version default mac macos set python default change mac python defatul version how change python version mac how update python version mac how to set python 3 as default mac whow to change the default python interpreter mac mac change python version to 3 how to make python on mac default to python 3 which python version mac change macos python 3 as default how to set default python to python3 mac how to set default python on mac how to change default python version on mac upgrade default python mac mac update current python version how to make python3 your default mac set default python mac most stable python3 version for mac as default most stable python version for mac as default mac set python to python3 how to make python3 default macos catalina how to update python version mac mac change python3 version macos change default python version how to change default python version in macos mac make default python 3 change default pip version in mac change default python version in mac how to set python 3 as default in mac mac make python 3 default change default pip version macos macos make python3 default How do I make Python 3.9 default on Mac? how to change the python version on mac os mac change python version to 3.7 mac change python version to 2.7 mac how to make python 3 default mac os change python version should i set default python version to python3 on mac change version of python used on mac macos change python3 version hoe to make python3 default in macbook macos python3 as default how to change the default python interpreter on a mac default python mac upgrade python version mac terminal change python3 command mac mac os python version change how to set python3.7 as default in mac python change default version mac how to update python version on mac terminal macos default python change macos default ython version set python 3 as default mac mac set python default version upgrade mac python version upgrade default python mac change mac default python version set default python version to 3 mac change default version of python in macos change python version mac to 3.5 macos install make default python3 how to change default python 3.9 as default version mac python library default 3 mac python default 3 mac set python 3.9 default on mac how to set python new version in mac how to update python version in mac thru command mac terminal change python version how to set python in mac mac update python version how set python3 as defualt in macbook macos set python 3 as default change default python to 2.7 in mac macos change default python version to 3 mac change version of python change default version python mac os change default python version macos python mac change default version change python 3 version mac how to set up a new python version in mac how to set python on mac how to make python 3 default in mac how to change default python3 version mac change python version mac iin environment making python 3 default on mac mac default python version how to change the python version on mac permanently how to change the python version on mac set python version to 3 as default macos how to change the python version mac set python 3.8 as default mac how to set python 3.7 as default on mac how to make python3 default on mac setting default python version mac mac change python to python3 mac os set python 3.9 as default how to make python3 as default in mac mac use python 3 as default install new python mac set as default change python version to latest mac how to change python to latest in mac set python3 as default mac set python 2.7 as default mac how to change python version mac mac running python default to python3 the right and wrong way to set python 3 as default on a mac the right and wrong way to set python 3 as default on mac change python to use python 3.7 on mac mac default python why won't my mac default to python 3 change python default version mac make python 3 default on mac os gow ot change python version in mac how to make python3 as a default python version on MacOs? mac set python version how to set python as the default language on mac mac upgrade python version mac os change default python version python change version mac how to change python version macos to 3.9 mac update default python change default pytohn version mac mac use python 3 default python version update mac how to update python version on mac How to download python 3.9 and set it as default python in mac How to downlad python 3.9 and set it as default python in mac setting python version mac how to set default python to python3 in mac using alias how to point python3 as default mac how to set python 3 as your default python mac check default python version mac change to another python version mac update python version mac how to change python default mac osx change the default python version mac set python 3.7 as default mac make python 3.7 as default mac make python 3.7 6 as default mac how to switch python version mac mac default python path how to change python3 version macos set default python to some version mac upgrade python version mac update python version mac terminal how to change default python interpreter macos how to change mac default python version set python version mac use python 3 by default mac how to set default python as python3 mac set python3 default in macos set python 3 default mac mac change python 3 version how to change the version my mac uses of python how can I change current python version in mac set default python to python3 mac macbook how to set the defual python version how to set python3 as default mac make python 3 default mac how to make python 3 default on mac switch to new python version mac how to switch python version on mac change python version on mac terminal mac change default python change mac python version command for updating python version on macos make python3.8 default mac change python3 version mac set default python on macos python3 as default mac where to find python versions mac how to set python2 as defualt mac make python 3.8 default mac set python 3.9.2 as default in mac change version of python on mac chaning default version of python mac make python 3 default in mac how to make python3 default mac mac python3 to default setting python 3 as default on mac python version changing back mac change use of python3 version mac set python3 to default mac change default python to python3 in mac mac os python 3 default mac python 3 default how to set the default python version mac how to change the default python to python 2.7 version mac mac os update default python set python 2 as default mac setting default python pip version mac change python version in mac change python version on mac make python3 default mac install python3 as default macos change default python to python3 permanently macos mac change default python version how to change default version of python in mac how to change python version in mac how to set python3.9 as default python3 mac how to set a version of python as a default version of mac how change default version python on mac how to change the default version of python in ,mac set python 3 as default python mac change default python to python3 mac mac make python3 default change version of python mac set python 3.8 on mac as default how to set new python version 3.9_2 as default mac how to set new python version as default mac macos set default pythont to python3 set default python to python3 macos change python3 as default mac change default python version mac os x how to set a pytohon installation the default one in mac Python 3.8.2 is default to mac? upgrade default python for mac change default python ide mac switch your mac python version to python 3 macos change default python ho to set you mac default pyton to python 3 use python3 as default mac change python version mac change version python mac mac cant change python version how to set python3 as default in mac change default python mac how to change the default python version mac set default python version mac how to make python 3.9 default on mac default python on mac change python version macos use python 3 default mac python3 default mac mac set python3 as default how to change python version on mac change default python version on mac back to 2.7 set python version to 3.6 as default mac use python 3 mac mac python runs version 2 and not 3 set up python properly on mac make python 3.9 default mac how to set default python in mac osx make python3 default make pip use python 3 mac mac update python "zsh" mac set default python to 3.9 python install python 3 as default mac mac change python version to 3.9 how to make python3 to be default mac mac default python3 run python 3 instead of 2 mac python 3 default mac change defualt python from ptyhon 2 to 3 mac os can't use os in mac python how to get permission to move /usr/bin/python in mac osx switch python version homebrew select python version macos set python3 as default macbook set python3 as default default compiler python3 mac mac python version change find python 3.7 zsh macos change python3 default python package in mac change python version mac to 3.8 tried to download python 3 on mac installer downloaded but terminal still says i'm running an old version what do i do? which python version is most stable for mac update global python on mac how to change default python on mac terminal macos set path for python 3 as default mac change python version default python version in mac how to change global python on mac set python3.7 as default on mac default python to python3 mac how to defult version of python mac python3 change version mac make default python python3 mac default python3.7 location macos how to define python3 as my default python mac upgrade python 2.7 to 3.7 mac set default python3 version macos how to change python 2.7 to 3.7 in mac unable to set python version to 3.5 in mac mac force to install use python 3 apple change python3 to default set default python to 3 mac do I still need to brew python 3 in mojave python 3 mac default run default python3 on mac how to make python 3 the defaut mac use python3.9 instead 3.8 macos default python3 macbook python 3 mac python using 3.6 instead of 3.9 macbook brew python 3.9 /usr/bin/python change default python interpreter mac how to set python3 as default mac set python 3 as default mac how to python 3 default python 3 location mac change mac terminal to python3 macos switch to python 3 update python in usr/bin how to use python 3 on mac instead of 2 set python 3 as default on mac how to change python version 3.8 to 3.7 change default version of python 3 in macos set python version to 3 on mac mac switch to python 3 WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal. macos symlink python to python3 mac coomand line python3 open 3.7 instead of 3.9 mac change default python to python3 switch to python 3 macos use python3 default mac switch python versions mac mac python update macos switch python 3 set python3 path mac make python 3.7 6 as default mac without homebrew mac python upgrade use python 3 instead of 2 mac downgrade python 3.8 to python3.7 as default on mac change python version to 3.7 change python version mac 3.7 how to homebrew use python 3 macos python version manager set python 3.9 as default mac m1 change homebrew python version mac use python 3 instead of 2 python comand returns wrong python version mac why on mac i have python 2.7 and 3 update python3 mac mac set python3 how to link new python versoin mac python 3.75 default mac mac swith python version how to make homebrew python3 default and not /usr/bin/python3 mac python3 default set python3 as default mac from brew how to make python 3 as default brew python version how to invoke python3 as default mac avoid installing python 3 on mac alter default python3 mac add python version to cellar Running Python 3 as a Default (on macOS mac python change default version how to change default python version mac python2.7 to 3 mac Unable to set default python version to python3 in mac macos python2 link macos python link how to change version python mac make python 3 default mac set default python to 3 how to reset python on mac hombrew change pyhton version how to upgrade python version on zsh macos set default python version how to set python default version mac default python3 set python version to 3.7 how to reinstall default python in mac os mojave change python alias to python3 mac This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal. change python to 3.7 change symlink python 3.8 to 3.7 make python 3 default mac with pyenv mac default python 2 mac default python 2.7 alias python to python3 mac remove default python from mac and make python 3.8 default how to make python3.7 to default python version mac how to use python 3 in mac change default python to 3 upgrade python version mac globally change alias python mac macos link python to python3 how to find /usr/bin/python mac python3 default python2 update puthon3 macos set python 3.6 as default mac change python version mac user/bin/python change python3 to python2 on macos python3 path mac python version mac change python version from 2.7 to 3 on mac os macOS make python default mac switch python versions switch from python 2.7 to 3.6 mac python 2 vs 3 for mac how to transition to python3 in terminal mac install python3 with homebrew but still see python 2 update python 2 to 3 mac how to point python to python 3 mac how to get mac to use python 3 mac use python 2.7 by default python default version mac how to change to use python 3 python: aliased to /usr/local/bin/python3.7 how to change python version vscode set default mysql version on debian debian set default mysql version change default python version mac
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source