Gettinf error while installing beet


#1

Hi
I am trying to install beets but I am getting the following error:

$ sudo pip install beets
The directory ‘/Users/manmeetbhangu/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/Users/manmeetbhangu/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting beets
Downloading beets-1.4.5.tar.gz (1.4MB)
100% |████████████████████████████████| 1.5MB 757kB/s
Collecting six>=1.9 (from beets)
Downloading six-1.11.0-py2.py3-none-any.whl
Collecting mutagen>=1.33 (from beets)
Downloading mutagen-1.38.tar.gz (913kB)
100% |████████████████████████████████| 921kB 1.1MB/s
Collecting munkres (from beets)
Downloading munkres-1.0.12-py2.py3-none-any.whl
Collecting unidecode (from beets)
Downloading Unidecode-0.04.21-py2.py3-none-any.whl (228kB)
100% |████████████████████████████████| 235kB 3.0MB/s
Collecting musicbrainzngs>=0.4 (from beets)
Downloading musicbrainzngs-0.6.tar.gz (111kB)
100% |████████████████████████████████| 112kB 4.9MB/s
Collecting pyyaml (from beets)
Downloading PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 2.3MB/s
Collecting jellyfish (from beets)
Downloading jellyfish-0.5.6-cp27-none-macosx_10_11_x86_64.whl
Collecting enum34>=1.0.4 (from beets)
Downloading enum34-1.1.6-py2-none-any.whl
Installing collected packages: six, mutagen, munkres, unidecode, musicbrainzngs, pyyaml, jellyfish, enum34, beets
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py”, line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py”, line 115, in remove
renames(path, new_path)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/init.py”, line 267, in renames
shutil.move(old, new)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 302, in move
copy2(src, real_dst)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 131, in copy2
copystat(src, dst)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: ‘/tmp/pip-frDLoC-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info’

Can someone help. I am not too tech savy, hence my knowledge is limited to understand the errors.

Regards


#2

Please see the documentation about SIP. http://docs.beets.io/en/v1.4.5/guides/main.html#installing-on-macos-10-11-and-higher