码迷,mamicode.com
首页 > 编程语言 > 详细

python2 安装scrapy问题解决方法

时间:2016-07-22 01:09:57      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:

错误代码:

    build/temp.linux-x86_64-2.7/_openssl.c:429:30: fatal error: openssl/opensslv.h: 没有那个文件或目录
    compilation terminated.
    error: command x86_64-linux-gnu-gcc failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__=/tmp/pip-build-AQ8e0t/cryptography/setup.py;exec(compile(getattr(tokenize, open, open)(__file__).read().replace(\r\n, \n), __file__, exec))" install --record /tmp/pip-2cxmRo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-AQ8e0t/cryptography/

这个原因是库文件不全,安装

sudo apt-get install libssl-dev

即可

python2 安装scrapy问题解决方法

标签:

原文地址:http://www.cnblogs.com/INnoVationv2/p/5693698.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!