Collecting pylint
Using cached pylint-1.8.3-py2.py3-none-any.whl
Collecting six (from pylint)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting isort>=4.2.5 (from pylint)
Using cached isort-4.3.4-py2-none-any.whl
Collecting astroid<2.0,>=1.6 (from pylint)
Using cached astroid-1.6.2-py2.py3-none-any.whl
Collecting singledispatch; python_version < "3.4" (from pylint)
Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting mccabe (from pylint)
Using cached mccabe-0.6.1-py2.py3-none-any.whl
Collecting configparser; python_version == "2.7" (from pylint)
Using cached configparser-3.5.0.tar.gz
Collecting backports.functools-lru-cache; python_version == "2.7" (from pylint)
Using cached backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting futures (from isort>=4.2.5->pylint)
Using cached futures-3.2.0-py2-none-any.whl
Collecting wrapt (from astroid<2.0,>=1.6->pylint)
Using cached wrapt-1.10.11.tar.gz
Collecting enum34>=1.1.3; python_version < "3.4" (from astroid<2.0,>=1.6->pylint)
Using cached enum34-1.1.6-py2-none-any.whl
Collecting lazy-object-proxy (from astroid<2.0,>=1.6->pylint)
Using cached lazy-object-proxy-1.3.1.tar.gz
Installing collected packages: six, futures, isort, wrapt, enum34, lazy-object-proxy, singledispatch, backports.functools-lru-cache, astroid, mccabe, configparser, pylint
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.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 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: '/var/folders/xj/2978nnzn06b4r25bl8d1nm0000gn/T/pip-9R7I3k-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
解决方法:
忽略six已经安装的包
sudo pip install pylint –upgrade –ignore-installed six
Reference:
https://stackoverflow.com/questions/31900008/oserror-errno-1-operation-not-permitted-when-installing-scrapy-in-osx-10-11
https://www.zhihu.com/question/58251559/answer/296794223