首页 > 数据库技术 > 详细

ubuntu16.04 python3安装pymysql错误

时间:2018-09-09 21:39:35      阅读:394      评论:0      收藏:0      [点我收藏+]

    今天在服务器上搭建django开发环境的时候遇到了一问题,就是在python3下安装pymysql 出现以下问题

1.Failed cleaning build dir for cryptography

2.Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__=‘/tmp/pip-build-yzhhq2aa/cryptography/setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record /tmp/pip-399_hd6n-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-yzhhq2aa/cryptography/

 

原因就是系统缺少依赖包,一个命令装全解决:

sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev

 

ubuntu16.04 python3安装pymysql错误

原文:https://www.cnblogs.com/abel01250303/p/9615072.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!