问题

在 Ubuntu 下安装 python 依赖的时候出现以下错误

build/temp.linux-i686-3.5/_openssl.c:498:30: fatal error: openssl/opensslv.h: No such file or directorycompilation terminated.error: command 'i686-linux-gnu-gcc' failed with exit status 1----------------------------------------Failed building wheel for cryptographyRunning setup.py clean for cryptography
Failed to build cryptographyi686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-i686-3.5/_openssl.c -o build/temp.linux-i686-3.5/build/temp.linux-i686-3.5/_openssl.o -Wconversion -Wno-error=sign-conversionbuild/temp.linux-i686-3.5/_openssl.c:498:30: fatal error: openssl/opensslv.h: No such file or directorycompilation terminated.error: command 'i686-linux-gnu-gcc' failed with exit status 1----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-rbtstpsj/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1vor2x2o-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-rbtstpsj/cryptography/


解决办法

执行

apt install python3 python-dev python3-dev \build-essential libssl-dev libffi-dev \libxml2-dev libxslt1-dev zlib1g-dev \python-pip

系统的包安装完之后,即可正常安装 python 依赖

关注公众号 lxfriday_xyz,即送技术资料

Ubuntu 16 安装 python 依赖出现 error: command 'i686-linux-gnu-gcc' failed with exit status 1相关推荐

  1. python mysql gcc_MySQL-python “error: command 'gcc' failed with exit status 1”错误

    安装MySQL-python-1.2.3c1出现"error: command 'gcc' failed with exit status 1"错误 具体报错信息如下: _mysq ...

  2. 安装MySQL-python报错 error: command 'gcc' failed with exit status 1解决方法

    错误如: _mysql.c:2331: error: '_mysql_ConnectionObject' has no member named 'open' _mysql.c:2338: error ...

  3. python爬虫问题:error: command 'gcc' failed with exit status 1

    软件安装过程中,在安装lxml的时候出现如下错误 error: command 'gcc' failed with exit status 1 gcc当然没问题,问题原因是缺少相关组件, 安装以下2个 ...

  4. 安装oracle gcc版本,安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1

    安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1 发布时间:2020-06-19 21:27:36 来源:51CTO 阅读:1 ...

  5. 安装kerberos报错 error: command 'gcc' failed with exit status 1

    pip install kerberos 报错:error: command 'gcc' failed with exit status 1 安装环境工具 yum install gcc libffi ...

  6. 【吭】centos安装mysql报错OSError: mysql_config not found/error: command ‘gcc‘ failed with exit status 1

    问题:    OSError: mysql_config not found 解决:yum install mysql-devel 问题:error: command 'gcc' failed wit ...

  7. pycuda installation error: command 'gcc' failed with exit status 1

    原文:python采坑之路 Setup script exited with error: command 'gcc' failed with exit status 1 伴随出现"cuda ...

  8. error: command ‘gcc‘ failed with exit status 1

    error: command 'gcc' failed with exit status 1 Setup script exited with error: command 'gcc' failed ...

  9. error: command 'gcc' failed with exit status 1

    使用 pip install scrapy 安装 scrapy 时,提示error: command 'gcc' failed with exit status 1 解决方法: yum  -y  in ...

最新文章

  1. c语言int64编译时错误,错误:编译C程序时未在此作用域中声明uint64_t
  2. VC++图片框控件静态和动态加载位图
  3. 直线一级倒立摆控制(自起摆和稳态控制)
  4. 深度学习课程Deep Learning Courses
  5. 产品研究分析--王者荣耀的那些套路
  6. 邪恶的Java帝国是怎么欺负小函数的?
  7. SQLServer权限
  8. 从程序员到项目经理(十):程序员加油站 --要执着但不要固执
  9. 马斯克辞任董事长,罚款2000万美元,钢铁侠一夜服软
  10. MySQL在远程访问时非常慢的解决skip-name-resolve
  11. Qt连接SQL Server 2014数据库
  12. python导入datetime模块_Python时间模块datetime用法
  13. css调logo大小,B2主题logo设置篇(尺寸,设置,闪光特效的设置方法)
  14. Windows 10怎样安装.msi文件?三分钟解决问题
  15. 水产品进口手续及报关清关注意事项2021-08-27
  16. 快搜网络爬虫用户代理 User-Agent
  17. 软件测试自学毛笔字纹身,横眉冷对千夫指 俯首甘为孺子牛的毛笔楷书和行书...
  18. Java导出数据到Excel文件
  19. 优动漫PAINT漫画和插画方面软件特色
  20. [渝粤教育] 西南科技大学 建筑工程定额与预算 在线考试复习资料2021版

热门文章

  1. Linux系统中计划任务及其相关命令操作(at和crontab)
  2. 十大项目管理-人力资源管理
  3. YUMI制作启动盘安装ubuntu时报错:booting ‘find /menu.lstk /boot/grub/menu.lst, /grub/menu.lst‘
  4. PMP学习笔记 第9章 项目资源管理
  5. 如何复现论文?什么是论文复现?
  6. 莫烦python中的DDPG运行结果
  7. 【程序员学理财】曼昆:经济学十大原理,你都了解吗?
  8. Mybatis 出现The error may involve defaultParameterMap
  9. Vue和Servlet搭配使用
  10. 基于遗传算法改进的BP神经网络电网负荷预测,GA-BP神经网络电网负荷预测,1000案例之14