使用pip安装Scrapy出错
2024-10-18 10:02:35
安装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
最新文章
- [Hadoop in Action] 第2章 初识Hadoop
- MAC系统下配置环境变量
- JavaScript权威指南读书笔记
- 从SqlServer现有数据生成Insert脚本
- 64位linux下安装oracle10 64位 遇到 :ins_ctx.mk ;ins_emdb.mk
- Java内存模型—JMM
- day21.模块和包
- gdb调试android
- Ubuntu16.04安装配置和使用ctags
- Android--Android Studio 打开ADM报错
- Maven 进阶
- Mybatis源码解析优秀博文
- phoneGap的Android下编写phonegap 发送短信插件
- qboimathtest1 t1 魔法串
- 安全测试 + 渗透测试 Xmind 要点梳理
- session添加登录次数限制
- iOS 将navigationItem.titleView设置为自定义UISearchBar (Ficow实例讲解)
- luogu P3393 逃离僵尸岛-搜索剪枝+spfa
- 基本的查询流【MSSQL】
- 源代码编译安装MySQL5.6.12具体过程
热门文章
- Sqoop2安装
- 玩转X-CTR100 | STM32F4 l Malloc内存管理
- Okhttp对http2的支持简单分析
- OC基础:内存(内存管理) 分类: ios学习 OC 2015-06-25 16:50 73人阅读 评论(0) 收藏
- [Python] 网络编程之TCP编程
- Qt Quick Hello World hacking
- L3-018 森森美图 (30 分)
- 《DSP using MATLAB》Problem 4.5
- freemarker在js中的应用
- 【BZOJ2558】Count on a tree