[Terminal] Error


zsh compinit
  • Error Message
  • zsh compinit: insecure directories, run compaudit for list.
    Ignore insecure directories and continue [y] or abort compinit [n]?
  • Solution
  • $ cd /usr/local/share/zsh
    $ sudo chown -R root:root ./site-function
    [Python] pip install error:sys.stderr.write
  • Error Message
  • Traceback (most recent call last):
      File "/usr/local/bin/pip", line 11, in <module>
        load_entry_point('pip==21.0.1', 'console_scripts', 'pip')()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
        return ep.load()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load
        return self.resolve()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/main.py", line 60
        sys.stderr.write(f"ERROR: {exc}")
                                       ^
  • Soulution - python3
  • wget https://bootstrap.pypa.io/3.5/get-pip.py
    python3 get-pip.py
  • Soulution - python 2
  • wget https://bootstrap.pypa.io/2.7/get-pip.py
    python get-pip.py