Solved: Python's setuptools library on Mac cannot be upgraded

When I installed jupyter on a Mac, I encountered a situation where the Python setuptools library could not be upgraded. The reason was the Mac's security settings, which can be solved using the following methods:

  1. Restart your computer, hold while booting to Command+Renter Mac Protected Mode.
  2. Open the command line and enter the command to csrutils disableclose the system security policy.
  3. Restart the computer and continue to install jupyter.
  4. After the installation is complete, repeat the above method csrutils enableand restart again.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325530424&siteId=291194637