ubuntu下安装pip install mysqlclient 报错 command "python setup.py egg_info" failed with error.....解决方案
2018-05-08 17:50
671 查看
我的环境:
ubuntu 1604 版本, 在黑屏终端已经安装了django和virtualenv虚拟环境, 在创建了django的models后开始迁移的操作, 出现错误, 错误代码最后如题目
可以这样解决:
切出虚拟环境, 进入ubuntu的root账户, 输入apt-get -y install mysql-server mysql-client libmysqlclient-dev mytop 然后回车开始安装, 完成后, 继续进入虚拟django环境, 输入pip install mysqlclient 安装成功, 然后再次生成迁移, 此时迁移成功.
阅读更多相关文章推荐
- ubuntu 安装mysql 错误Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lmPxC
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- python2.7 安装channels出现Command"python setup.py egg_info" failed with error code 1 in /tmp/pip-build-y
- pip安装jupyter时报错Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Fd4ir0/
- python pip install 报错TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' Command "python setup.py egg_info" failed with error code 1 in
- pip安装icu失败:Command "python setup.py egg_info" failed with error code 1 in
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vqeCP7/Django/
- Python使用pip install psycopg2安装psycopg2包出现python setup.py egg_info failed with error code 1 in /tmp/pip-build-YtLeN3/psycopg2错误处理
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-o2julgbe/xgboost/
- 安装第三方模板库发生错误:Command "python setup.py egg_info" failed with error code 1 in XXXXX
- 出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*解决办法
- 解决 win10 pycurl安装出错 Command "python setup.py egg_info" failed with error code 10
- pip错误 Command "python setup.py egg_info" failed with error code 2
- 解决安装ipython时Command "python setup.py egg_info" failed with error code 1 in /tmp