I'm trying to set up the environment to do some Python on a new laptop. I did brew install python3
first, then went to make sure I had pip installed with pip --version
. The terminal said I didn't, so I did brew install pip
.
Then I went to install pipenv with pip install pipenv
. I got this error message:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-build-o6M3Ve/pipenv/.
Searching that, I saw people saying that pip's setup tools needed to be updated with pip install --upgrade setuptools
. When I tried that I got a really long error, which I'll post below. I'm in way over my head with this one and don't know where to start. Any and all help is appreciated.
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.3-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.3-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.3-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.3-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.3-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.3-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 299, in move
copytree(src, real_dst, symlinks=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 208, in copytree
raise Error, errors
Error:
[('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', "[Errno 1] Operation not permitted: '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', "[Errno 1] Operation not permitted: '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', "[Errno 1] Operation not permitted: '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', "[Errno 1] Operation not permitted: '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', "[Errno 1] Operation not permitted: '/var/folders/9t/pk6bmgc968d_fys24blkrgc40000gn/T/pip-Rp7V_U-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'")]