今日のpythonエラー:Permission denied


ダウンロードして文書を読むと

を入れろという。やってみた。

$ pip3 install --user afdko
Collecting afdko
  Downloading https://files.pythonhosted.org/packages/9e/0a/991bb8a4a4535e1bc030e40dd34d4d44b9b4915c4d4132c1868b87489e67/afdko-3.0.1-py3-none-macosx_10_6_intel.whl (2.4MB)
     |████████████████████████████████| 2.4MB 745kB/s 
Collecting ufonormalizer==0.3.6 (from afdko)
  Downloading https://files.pythonhosted.org/packages/16/49/48feb64327266a7147a8683f1bc547d9997499afff724251657f542702f0/ufonormalizer-0.3.6-py2.py3-none-any.whl
Collecting cu2qu[cli]==1.6.5 (from afdko)
  Downloading https://files.pythonhosted.org/packages/cd/57/112e1af07fbf01b4e838cb5afac797048de30d4cf36586e945554abf996d/cu2qu-1.6.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (250kB)
     |████████████████████████████████| 256kB 40.5MB/s 
Collecting booleanOperations==0.8.2 (from afdko)
  Downloading https://files.pythonhosted.org/packages/3d/67/05961a78573d5d4a710939bb9e0de6b828fd2902635db6ea66c0a54bafc5/booleanOperations-0.8.2-py2.py3-none-any.whl
Collecting ufoProcessor==1.0.6 (from afdko)
  Downloading https://files.pythonhosted.org/packages/c4/82/d489a23a4081cf05685276f1fca5115d8103fe5af7558b005943bfc47931/ufoProcessor-1.0.6-py2.py3-none-any.whl
Collecting psautohint==2.0.0a1 (from afdko)
  Downloading https://files.pythonhosted.org/packages/d6/15/552a379f988a9ed95f1db1779e761af3f220eec70a4854a7f8bb4f335bb4/psautohint-2.0.0a1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (386kB)
     |████████████████████████████████| 389kB 35.4MB/s 
Collecting mutatorMath==2.1.2 (from afdko)
  Downloading https://files.pythonhosted.org/packages/13/ee/662f841aa324b36f5cd12907e6f695cf831dfdbbc526cda4a2ccc20e812e/MutatorMath-2.1.2-py2.py3-none-any.whl
Collecting fontMath==0.5.0 (from afdko)
  Downloading https://files.pythonhosted.org/packages/65/1c/11bebe5b9586b41060618251c593fd1eb70e7143a4e68cea1b7f1e369fe2/fontMath-0.5.0-py2.py3-none-any.whl
Collecting fontTools[lxml,ufo,unicode,woff]==4.0.0 (from afdko)
  Downloading https://files.pythonhosted.org/packages/8d/cf/d2d6ca6aa22a1d6a6f064290a7bf0d4a3b1c2eb5f38f2a64a4341c36b12f/fonttools-4.0.0-py3-none-any.whl (716kB)
     |████████████████████████████████| 716kB 46.4MB/s 
Collecting lxml==4.4.1 (from afdko)
  Downloading https://files.pythonhosted.org/packages/32/3f/e4a551ce12890da4bed75000e0e11757ed9d962aeeee862db42092d4ec82/lxml-4.4.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (9.0MB)
     |████████████████████████████████| 9.0MB 41.5MB/s 
Collecting defcon[lxml,pens]==0.6.0 (from afdko)
  Downloading https://files.pythonhosted.org/packages/59/f1/b55f04cb96239ec77ea712f867af30fdbe546280bad3743a3c3ebe4295e6/defcon-0.6.0-py2.py3-none-any.whl (191kB)
     |████████████████████████████████| 194kB 31.2MB/s 
Collecting pyclipper>=1.0.5 (from booleanOperations==0.8.2->afdko)
  Downloading https://files.pythonhosted.org/packages/f4/21/4c13db060c2e44ab0d17973d8188ccc42c28f358659d9bc39eddf987db96/pyclipper-1.1.0.post1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (276kB)
     |████████████████████████████████| 276kB 31.6MB/s 
Collecting fontParts>=0.8.2 (from ufoProcessor==1.0.6->afdko)
  Downloading https://files.pythonhosted.org/packages/ef/70/e50c80a6b8ffd63898be61223231ca64cb36716e0fcdfce583a3e9092bbb/fontParts-0.8.9-py2.py3-none-any.whl (160kB)
     |████████████████████████████████| 163kB 39.2MB/s 
Collecting fs<3,>=2.2.0; extra == "ufo" (from fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko)
  Downloading https://files.pythonhosted.org/packages/23/32/c094850e008527d88226e56848683894e5daac0fef079e1de2318f3ad699/fs-2.4.10-py2.py3-none-any.whl (125kB)
     |████████████████████████████████| 133kB 39.7MB/s 
Collecting unicodedata2>=12.0.0; (python_version < "3.8" and platform_python_implementation != "PyPy") and extra == "unicode" (from fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko)
  Downloading https://files.pythonhosted.org/packages/d9/49/d82da8911f989dbe08f602f4cebeb4c9e67791df6237b4ebf995139d0a6b/unicodedata2-12.0.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (811kB)
     |████████████████████████████████| 819kB 38.1MB/s 
Collecting zopfli>=0.1.4; extra == "woff" (from fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko)
  Downloading https://files.pythonhosted.org/packages/a8/5a/c0dea41694db785450e664c94722394a99466d149f049d825dc3f637d838/zopfli-0.1.6-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (72kB)
     |████████████████████████████████| 81kB 22.4MB/s 
Collecting brotli>=1.0.1; platform_python_implementation != "PyPy" and extra == "woff" (from fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko)
  Downloading https://files.pythonhosted.org/packages/75/23/792326ae9071ca6b691d1f0c5cd707c316980146236f99dcf971a6146317/Brotli-1.0.7-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (796kB)
     |████████████████████████████████| 798kB 44.7MB/s 
Collecting fontPens>=0.1.0; extra == "pens" (from defcon[lxml,pens]==0.6.0->afdko)
  Downloading https://files.pythonhosted.org/packages/ba/9d/d084c2760c735e8f81c2a3c9e0d403cfacb811daf5166fbaa353e6d647c5/fontPens-0.2.4-py2.py3-none-any.whl
Requirement already satisfied: pytz in ./.pyenv/versions/anaconda3-4.3.0/lib/python3.6/site-packages (from fs<3,>=2.2.0; extra == "ufo"->fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko) (2017.2)
Requirement already satisfied: setuptools in ./.pyenv/versions/anaconda3-4.3.0/lib/python3.6/site-packages (from fs<3,>=2.2.0; extra == "ufo"->fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko) (41.0.1)
Collecting appdirs~=1.4.3 (from fs<3,>=2.2.0; extra == "ufo"->fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko)
  Downloading https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Requirement already satisfied: six~=1.10 in ./.pyenv/versions/anaconda3-4.3.0/lib/python3.6/site-packages (from fs<3,>=2.2.0; extra == "ufo"->fontTools[lxml,ufo,unicode,woff]==4.0.0->afdko) (1.10.0)
Installing collected packages: ufonormalizer, lxml, appdirs, fs, unicodedata2, zopfli, brotli, fontTools, fontPens, defcon, cu2qu, pyclipper, booleanOperations, fontMath, mutatorMath, fontParts, ufoProcessor, psautohint, afdko
  WARNING: The script ufonormalizer is installed in '/Users/administrator/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts fonttools, pyftmerge, pyftsubset and ttx are installed in '/Users/administrator/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script cu2qu is installed in '/Users/administrator/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts psautohint and psstemhist are installed in '/Users/administrator/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts autohint, buildcff2vf, buildmasterotfs, charplot, checkoutlinesufo, comparefamily, digiplot, fontplot, fontplot2, fontsetplot, hintplot, makeinstancesufo, makeotf, otc2otf, otf2otc, otf2ttf, stemhist, ttfcomponentizer, ttxn and waterfallplot are installed in '/Users/administrator/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed afdko-3.0.1 appdirs-1.4.3 booleanOperations-0.8.2 brotli-1.0.7 cu2qu-1.6.5 defcon-0.6.0 fontMath-0.5.0 fontParts-0.8.9 fontPens-0.2.4 fontTools-4.0.0 fs-2.4.10 lxml-4.4.1 mutatorMath-2.1.2 psautohint-2.0.0a1 pyclipper-1.1.0.post1 ufoProcessor-1.0.6 ufonormalizer-0.3.6 unicodedata2-12.0.0 zopfli-0.1.6
WARNING: You are using pip version 19.1.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
cp: /Users/administrator/.pyenv/shims/gettext.sh: Permission denied

$ pip3 install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl (1.4MB)
     |████████████████████████████████| 1.4MB 1.1MB/s 
Installing collected packages: pip
  Found existing installation: pip 19.1.1
    Uninstalling pip-19.1.1:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/administrator/.pyenv/versions/anaconda3-4.3.0/lib/python3.6/site-packages/pip-19.1.1.dist-info/entry_points.txt'
Consider using the `--user` option or check the permissions.

WARNING: You are using pip version 19.1.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.