Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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 :: how to make pyautogui faster 
Python :: pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match for multiple 
Python :: Colorcodes Discord.py 
Python :: warning ignore python 
Python :: pandas change column to a string 
Python :: python kivy Kivy files require #:kivy ! 
Python :: install serial python 
Python :: The following packages have unmet dependencies: libnode72 : Conflicts: nodejs-legacy E: Broken packages 
Python :: how to round the values in a list 
Python :: add bearer token in python request 
Python :: numpy array count frequency 
Python :: bold text variable in python 
Python :: import apiview 
Python :: split data validation 
Python :: python add legend title 
Python :: flask minimul app 
Python :: super idol 
Python :: simple imputer python 
Python :: sns figsize 
Python :: hide window in selenium Webdriver python 
Python :: python reload class 
Python :: python except keyboardinterrupt 
Python :: erode dilate opencv python 
Python :: opencv draw a point 
Python :: python how to generate random number in a range 
Python :: selenium find button by text 
Python :: python MinMaxScaler() 
Python :: hyperlinks in jupyter notebook 
Python :: pygame draw circle 
Python :: how to search for a specific file extension with python 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =