鱼C论坛

 找回密码
 立即注册
查看: 1392|回复: 1

mac系统上scrapy 框架安装问题

[复制链接]
发表于 2018-2-24 01:44:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
在终端用pip3 install Scrapy命令之后
会报出一下错误
  1. gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c build/temp.macosx-10.6-intel-3.7/_openssl.c -o build/temp.macosx-10.6-intel-3.7/build/temp.macosx-10.6-intel-3.7/_openssl.o -Wconversion -Wno-error=sign-conversion
  2.     build/temp.macosx-10.6-intel-3.7/_openssl.c:493:10: fatal error: 'openssl/opensslv.h' file not found
  3.     #include <openssl/opensslv.h>
  4.              ^~~~~~~~~~~~~~~~~~~~
  5.     1 error generated.
  6.     error: command 'gcc' failed with exit status 1
复制代码


应该怎么解决?
'''openssl version命令显示OpenSSL 0.9.8zh 14 Jan 2016
但是brew install openssl 显示 openssl 1.0.2n is already installed
不知道有没有关系'''
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2018-2-28 00:41:08 From FishC Mobile | 显示全部楼层
最后在GitHub上找到方法了pip3 install Scrapy --global-option=build_ext --global-option="-L/usr/local/opt/openssl/lib" --global-option="-I/usr/local/opt/openssl/include"
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-3-29 08:22

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表