creationbad.blogg.se

Macos install python 3
Macos install python 3






macos install python 3

$ cd /Library/Frameworks/amework/Versions/3.9/bin Go to /Library/Frameworks/amework/Versions/3.9/bin directory, list all the files inside the directory, you can see the command file python3 is linked to another executable file python3.9.Library/Frameworks/amework/Versions/3.9/bin:/Library/Frameworks/amework/Versions/2.7/bin.

macos install python 3

Run echo $PATH command in a terminal, you can see python 3.9 and python 2.7 ‘s bin directory are all at the beginning of the PATH system environment variable.But how to make python command invokes python 3.7 or python 3.9 instead of python 2.7, you can follow the below steps.To get the current python version, add uppercase -V as the python command parameter like below.Then you can go back to the terminal bash environment again. To exit the Python interactive interpreter, input command exit().Type "help", "copyright", "credits" or "license" for more information. To use the new Python version, you need to run python3 in the terminal.Now when you execute the python command in a terminal, you will find it still uses the old version which is 2.7.

macos install python 3

How To Fix Installed Python3 But Still Python 2.7 Is Used Error.

  • Now you can see all the 3 python version has been installed in the /Library/Frameworks/amework/Versions folder.Ģ.
  • Input /Library/Frameworks/amework/Versions in above Go to Folder dialog, click Go button.
  • Open a Finder, click Go -> Go to Folder… menu item at the top menu bar.
  • When the installation process completes successfully.
  • After download, double click the installer to install it follow the wizard ( you can refer Install Python Linux And MacOS Version Tutorial ).
  • Go to python download page and click the related link to download.







  • Macos install python 3