mac os upgrade to Python3

       The default zone is Python2.7, Python2.7 soon will no longer continue to be updated when the system is always prompt, simply to upgrade directly to Python 3.7.

Upgrade steps:

1, install Python 3.7

      brew  install python@3   

     After installation you need to use python3.7 to use in the terminal below. For ease of use, we do soft connection, it deleted the original python 2.7 link.

2、

  rm  -rf  /usr/local/bin/python

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

Finished soft connection and you're done.

    / Bin / python when deleting / usr / local authority because the system does not prompt joined Rootless, need to restart the computer command + R into recovery mode, open Terminal.

 csrutil disable # this command is executed, closed limit.

 reboot # reboot the system

After the operation is complete for safety, reopen Rootless

   csrutil enable

 

Guess you like

Origin blog.csdn.net/qq_42409788/article/details/90519463