作者:Bright Xu
这里用的服务器是Ubuntu18.04,CentOS服务器 请参考 CentOS 解决
pip
安装mysqlclient
报错的问题
-
Django开发项目时使用MySQL数据库,然而部署到Ubuntu服务器的时候会经常出错。
-
Django连接MySQL数据库需要依赖第三方库
mysqlclient
,然而服务器通过pip3 install mysqlclient
命令安装第三方库mysqlclient
时会经常报错:
ERROR: Command errored out with exit status 1:
command: /home/bright/web/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ffv9cnlj/mysqlclient/se