以安装jieba库为例
调出终端terminal->输入代码sudu python3 -m pip jieba->等待下载即可
➜ ~ sudo python3 -m pip install jieba
Password:
WARNING: The directory '/Users/apple/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting jieba
Downloading jieba-0.42.1.tar.gz (19.2 MB)
|████████████████████████████████| 19.2 MB 182 kB/s
Building wheels for collected packages: jieba
Building wheel for jieba