ubuntu16.04 python3安装pymysql错误


    今天在服务器上搭建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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM