How to update python 3.6.1 to 3.6.6 on mac

as the title

I use the mac operating system, and have just come into contact with python . I have installed 3.6.1 before, but now the latest version of 3.6.x is 3.6.6 . I want to upgrade 3.6.1 in the system to 3.6.6 . Can you download and install the package directly on the official website? Or do you need to use homebrew to upgrade?

the question is a little stupid. I beg your pardon. I would appreciate it if any of my seniors could answer it.


brew list 

see if there is any python,.

brew upgrade python3

if not

brew install python3

never use mac to mean that you never touch the Python interpreter that comes with Linux. Go to the official website to download the source code of the version you want, get the local compilation and installation, and configure the environment variables

.

mac if the interpreter of the system does not come with , uninstall it and reinstall it, or upgrade it directly
if it is the advice of the system itself, do not do a dead upgrade = = lesson of using Linux blood

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e43e77-4379c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e43e77-4379c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?