安装Scrapy出错

安装

使用pip安装(Ubuntu)

# 安装pip
sudo apt install python-pip # python2
sudo apt install python3-pip # python3
# python3
sudo pip3 install Scrapy
# python2
sudo pip install Scrapy

错误信息

使用pip安装Scrapy时:

...
...
Requirement already satisfied: pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->Scrapy)
Installing collected packages: cryptography, pyOpenSSL, service-identity, Scrapy
Found existing installation: cryptography 1.2.3
Uninstalling cryptography-1.2.3:
Successfully uninstalled cryptography-1.2.3
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-cye1ome_/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-q_y00_ho-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.5/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.5/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.5/cryptography
...
...

解决方法

点击查看原文

可能的原因: 缺少依赖库.

for Ubuntu

python2

sudo apt-get install build-essential libssl-dev libffi-dev python-dev

python3

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

最新文章

  1. [Hadoop in Action] 第2章 初识Hadoop
  2. MAC系统下配置环境变量
  3. JavaScript权威指南读书笔记
  4. 从SqlServer现有数据生成Insert脚本
  5. 64位linux下安装oracle10 64位 遇到 :ins_ctx.mk ;ins_emdb.mk
  6. Java内存模型—JMM
  7. day21.模块和包
  8. gdb调试android
  9. Ubuntu16.04安装配置和使用ctags
  10. Android--Android Studio 打开ADM报错
  11. Maven 进阶
  12. Mybatis源码解析优秀博文
  13. phoneGap的Android下编写phonegap 发送短信插件
  14. qboimathtest1 t1 魔法串
  15. 安全测试 + 渗透测试 Xmind 要点梳理
  16. session添加登录次数限制
  17. iOS 将navigationItem.titleView设置为自定义UISearchBar (Ficow实例讲解)
  18. luogu P3393 逃离僵尸岛-搜索剪枝+spfa
  19. 基本的查询流【MSSQL】
  20. 源代码编译安装MySQL5.6.12具体过程

热门文章

  1. Sqoop2安装
  2. 玩转X-CTR100 | STM32F4 l Malloc内存管理
  3. Okhttp对http2的支持简单分析
  4. OC基础:内存(内存管理) 分类: ios学习 OC 2015-06-25 16:50 73人阅读 评论(0) 收藏
  5. [Python] 网络编程之TCP编程
  6. Qt Quick Hello World hacking
  7. L3-018 森森美图 (30 分)
  8. 《DSP using MATLAB》Problem 4.5
  9. freemarker在js中的应用
  10. 【BZOJ2558】Count on a tree