Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to update python on mac

install the latest Python.

$ brew install python

List all Python versions installed on your system.

$ ls -l /usr/local/bin/python*

Change default Python version to the latest version.

$ ln -s -f /usr/local/bin/python[your-latest-version-just-installed] /usr/local/bin/python

E.g:

$ ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python

Restart terminal. exec bash -l to restart without closing terminal window

$ bash -l

Check Python version default again.

$ python --version
Comment

update python mac

install the latest Python.

$ brew install python

List all Python versions installed on your system.

$ ls -l /usr/local/bin/python*

Change default Python version to the latest version.

$ ln -s -f /usr/local/bin/python[your-latest-version-just-installed] /usr/local/bin/python

E.g:

$ ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python

Restart terminal. exec bash -l to restart without closing terminal window

$ bash -l

Check Python version default again.

$ python --version
Comment

PREVIOUS NEXT
Code Example
Python :: python get last key in dict 
Python :: django import csrf exemplt 
Python :: reload function jupyter notebook 
Python :: clear python list 
Python :: draw a circle in python turtle 
Python :: set select group of columns to numeric pandas 
Python :: pandas dataframe convert string to float 
Python :: psyche 
Python :: green fuel 
Python :: initialize array of natural numbers python 
Python :: python webdriver open with chrome extension 
Python :: chart-studio python install 
Python :: python open file relative to module 
Python :: run python file in interactive mode 
Python :: python find first duplicate numbers 
Python :: remove columns that contain certain names in pandas 
Python :: extract month as integer python 
Python :: plotly update legend title 
Python :: append file to list python 
Python :: How to Convert Strings to Datetime in Pandas DataFrame 
Python :: pygame holding a button down 
Python :: python bz2 install 
Python :: discord.py check if message has certain reaction 
Python :: python find specific file in directory 
Python :: Python - How To Ways to Remove xa0 From a String 
Python :: np.hstack 
Python :: python from timestamp to string 
Python :: error urllib request no attribute 
Python :: how to create obtain any random 3 items of list in python 
Python :: python game engine 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =