Mac 安装scrapy报错及解决方案
来源:互联网 发布:西卡的淘宝店 编辑:程序博客网 时间:2024/05/21 18:33
sudo pip install scrapy
The directory '/Users/hermione/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/hermione/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 scrapy
Downloading Scrapy-1.3.3-py2.py3-none-any.whl (240kB)
100% |████████████████████████████████| 245kB 51kB/s
Requirement already satisfied: lxml in /Library/Python/2.7/site-packages (from scrapy)
Requirement already satisfied: PyDispatcher>=2.0.5 in /Library/Python/2.7/site-packages (from scrapy)
Collecting Twisted>=13.1.0 (from scrapy)
Downloading Twisted-17.1.0.tar.bz2 (3.0MB)
100% |████████████████████████████████| 3.0MB 124kB/s
Requirement already satisfied: pyOpenSSL in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scrapy)
Collecting queuelib (from scrapy)
Downloading queuelib-1.4.2-py2.py3-none-any.whl
Collecting w3lib>=1.15.0 (from scrapy)
Downloading w3lib-1.17.0-py2.py3-none-any.whl
Collecting cssselect>=0.9 (from scrapy)
Downloading cssselect-1.0.1-py2.py3-none-any.whl
Collecting parsel>=1.1 (from scrapy)
Downloading parsel-1.1.0-py2.py3-none-any.whl
Collecting service-identity (from scrapy)
Downloading service_identity-16.0.0-py2.py3-none-any.whl
Collecting six>=1.5.2 (from scrapy)
Downloading six-1.10.0-py2.py3-none-any.whl
Requirement already satisfied: zope.interface>=3.6.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from Twisted>=13.1.0->scrapy)
Requirement already satisfied: constantly>=15.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied: incremental>=16.10.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy)
Collecting Automat>=0.3.0 (from Twisted>=13.1.0->scrapy)
Downloading Automat-0.5.0-py2.py3-none-any.whl
Collecting pyasn1 (from service-identity->scrapy)
Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 191kB/s
Collecting pyasn1-modules (from service-identity->scrapy)
Downloading pyasn1_modules-0.0.8-py2.py3-none-any.whl
Collecting attrs (from service-identity->scrapy)
Downloading attrs-16.3.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from zope.interface>=3.6.0->Twisted>=13.1.0->scrapy)
Installing collected packages: six, attrs, Automat, Twisted, queuelib, w3lib, cssselect, parsel, pyasn1, pyasn1-modules, service-identity, scrapy
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/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/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-o99YZW-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
$ sudo easy_install six
Searching for six
Best match: six 1.4.1
Adding six 1.4.1 to easy-install.pth file
Using /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Processing dependencies for six
Finished processing dependencies for six
tanghemingdeMacBook-Pro:~ hermione$ brew install python
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
==> Installing dependencies for python:readline,sqlite,gdbm
==> Installing python dependency:readline
==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring readline-7.0.3.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/readline/lib
CPPFLAGS: -I/usr/local/opt/readline/include
==> Summary
�� /usr/local/Cellar/readline/7.0.3: 46 files, 2MB
==> Installing python dependency:sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.17.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.17.0.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS provides an older sqlite3.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
�� /usr/local/Cellar/sqlite/3.17.0: 11 files, 2.9MB
==> Installing python dependency:gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.12.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gdbm-1.12.sierra.bottle.tar.gz
�� /usr/local/Cellar/gdbm/1.12: 18 files, 486.9KB
==> Installing python
==> Downloading https://homebrew.bintray.com/bottles/python-2.7.13.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring python-2.7.13.sierra.bottle.tar.gz
==> Using the sandbox
==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=insta
==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=insta
==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=insta
==> Caveats
Pip and setuptools have been installed. To update them
pip install --upgrade pip setuptools
You can install Python packages with
pip install <package>
They will install into the site-package directory
/usr/local/lib/python2.7/site-packages
See: http://docs.brew.sh/Homebrew-and-Python.html
==> Summary
�� /usr/local/Cellar/python/2.7.13: 3,526 files, 48MB
tanghemingdeMacBook-Pro:~ hermione$ sudo pip install scrapy
The directory '/Users/hermione/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/hermione/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 scrapy
Downloading Scrapy-1.3.3-py2.py3-none-any.whl (240kB)
100% |████████████████████████████████| 245kB 136kB/s
Collecting six>=1.5.2 (from scrapy)
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting cssselect>=0.9 (from scrapy)
Downloading cssselect-1.0.1-py2.py3-none-any.whl
Collecting parsel>=1.1 (from scrapy)
Downloading parsel-1.1.0-py2.py3-none-any.whl
Collecting service-identity (from scrapy)
Downloading service_identity-16.0.0-py2.py3-none-any.whl
Collecting pyOpenSSL (from scrapy)
Downloading pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
100% |████████████████████████████████| 51kB 184kB/s
Collecting w3lib>=1.15.0 (from scrapy)
Downloading w3lib-1.17.0-py2.py3-none-any.whl
Collecting queuelib (from scrapy)
Downloading queuelib-1.4.2-py2.py3-none-any.whl
Collecting PyDispatcher>=2.0.5 (from scrapy)
Downloading PyDispatcher-2.0.5.tar.gz
Collecting Twisted>=13.1.0 (from scrapy)
Downloading Twisted-17.1.0.tar.bz2 (3.0MB)
100% |████████████████████████████████| 3.0MB 30kB/s
Collecting lxml (from scrapy)
Downloading lxml-3.7.3.tar.gz (3.8MB)
100% |████████████████████████████████| 3.8MB 30kB/s
Collecting attrs (from service-identity->scrapy)
Downloading attrs-16.3.0-py2.py3-none-any.whl
Collecting pyasn1 (from service-identity->scrapy)
Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 20kB/s
Collecting pyasn1-modules (from service-identity->scrapy)
Downloading pyasn1_modules-0.0.8-py2.py3-none-any.whl
Collecting cryptography>=1.3.4 (from pyOpenSSL->scrapy)
Downloading cryptography-1.8.1-cp27-cp27m-macosx_10_10_intel.whl (1.8MB)
100% |████████████████████████████████| 1.8MB 46kB/s
Collecting zope.interface>=3.6.0 (from Twisted>=13.1.0->scrapy)
Downloading zope.interface-4.3.3-cp27-cp27m-macosx_10_11_x86_64.whl (135kB)
100% |████████████████████████████████| 143kB 45kB/s
Collecting constantly>=15.1 (from Twisted>=13.1.0->scrapy)
Downloading constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from Twisted>=13.1.0->scrapy)
Downloading incremental-16.10.1-py2.py3-none-any.whl
Collecting Automat>=0.3.0 (from Twisted>=13.1.0->scrapy)
Downloading Automat-0.5.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=11.3 in /usr/local/lib/python2.7/site-packages (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Collecting cffi>=1.4.1 (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading cffi-1.9.1-cp27-cp27m-macosx_10_10_intel.whl (214kB)
100% |████████████████████████████████| 215kB 57kB/s
Collecting idna>=2.1 (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading idna-2.5-py2.py3-none-any.whl (55kB)
100% |████████████████████████████████| 61kB 78kB/s
Collecting enum34 (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading enum34-1.1.6-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading asn1crypto-0.21.1-py2.py3-none-any.whl (96kB)
100% |████████████████████████████████| 102kB 124kB/s
Collecting ipaddress (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading ipaddress-1.0.18-py2-none-any.whl
Collecting packaging (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading packaging-16.8-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading pycparser-2.17.tar.gz (231kB)
100% |████████████████████████████████| 235kB 169kB/s
Collecting pyparsing (from packaging->cryptography>=1.3.4->pyOpenSSL->scrapy)
Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 202kB/s
Installing collected packages: six, cssselect, lxml, w3lib, parsel, attrs, pycparser, cffi, idna, enum34, asn1crypto, ipaddress, pyparsing, packaging, cryptography, pyOpenSSL, pyasn1, pyasn1-modules, service-identity, queuelib, PyDispatcher, zope.interface, constantly, incremental, Automat, Twisted, scrapy
Running setup.py install for lxml ... done
Running setup.py install for pycparser ... done
Running setup.py install for PyDispatcher ... done
Running setup.py install for Twisted ... done
Successfully installed Automat-0.5.0 PyDispatcher-2.0.5 Twisted-17.1.0 asn1crypto-0.21.1 attrs-16.3.0 cffi-1.9.1 constantly-15.1.0 cryptography-1.8.1 cssselect-1.0.1 enum34-1.1.6 idna-2.5 incremental-16.10.1 ipaddress-1.0.18 lxml-3.7.3 packaging-16.8 parsel-1.1.0 pyOpenSSL-16.2.0 pyasn1-0.2.3 pyasn1-modules-0.0.8 pycparser-2.17 pyparsing-2.2.0 queuelib-1.4.2 scrapy-1.3.3 service-identity-16.0.0 six-1.10.0 w3lib-1.17.0 zope.interface-4.3.3
tanghemingdeMacBook-Pro:~ hermione$
http://stackoverflow.com/questions/31900008/oserror-errno-1-operation-not-permitted-when-installing-scrapy-in-osx-10-11
- Mac 安装scrapy报错及解决方案
- Scrapy报错及解决方案集锦
- 在Mac terminal上安装scrapy过程报错及解决方法
- Windows安装Python组件Scrapy报错的解决方案
- scrapy安装报错
- 通过代理安装pip,及scrapy安装报错记录
- 【自留】pyenv在Mac OS 下安装报错信息及解决方案
- Mac OS 安装 Scrapy一直失败的解决方案
- U盘安装Linux安装报错及解决方案
- U盘安装Linux安装报错及解决方案
- Mac 安装 Scrapy
- Mac OS安装Scrapy
- mac安装scrapy
- Mac 安装Scrapy
- Mac 安装scrapy框架
- Mac OS安装Scrapy
- Mac 下安装scrapy
- Mac上安装scrapy
- POJ1325&&ZOJ1364-Machine Schedule
- Kafka入门经典教程
- pod 上传命令备注
- 内核Kconfig 与 Makefile 文件分析
- JVM(2): JVM 内存结构
- Mac 安装scrapy报错及解决方案
- sublime 一些常用快捷键
- 设计模式之适配器模式
- 欢迎使用CSDN-markdown编辑器
- AS中调用粘贴板
- Android文件存取与SharedPreferences
- Java集合—ArrayList的源码解读
- qt在Debug模式下断点调试时无效问题
- 小鸦视角-看关系数据库MSSQL-索引(2)聚集索引和非聚集索引