python mysqlclient安装失败 Command "python setup.py egg_info" failed with error code 1
2018-10-17 13:05
651 查看
版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/DarrenXf/article/details/83108075
python2 python3 中代码
pip install mysqlclient
都安装失败的话,
很有可能是你的操作系统中没有安装mysql
如果确定已经安装了,请忽略下面的内容.
Ubuntu 下安装 mysql的方法
sudo apt-get -y install mysql-server sudo apt-get -y install mysql-client sudo apt-get -y install libmysqlclient-dev
运行上面的shell代码可以安装mysql
然后
pip install mysqlclient
可以再python2 和python3中安装
但是mysqlclient 只更新到3.4
在python3.5中需要安装pymysql
pip install PyMySQL
注 这里pip 时环境中只有一个python ,只有python2或者python3
阅读更多相关文章推荐
- pip安装icu失败:Command "python setup.py egg_info" failed with error code 1 in
- ubuntu 安装mysql 错误Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lmPxC
- (未解决,只是提供一种思路)安装pyspider失败:Command "python setup.py egg_info"failed with error code 10 in.....
- ubuntu下安装pip install mysqlclient 报错 command "python setup.py egg_info" failed with error.....解决方案
- 解决Python3安装turtle提示错误:Command "python setup.py egg_info" failed with error code 1
- 安装第三方模板库发生错误:Command "python setup.py egg_info" failed with error code 1 in XXXXX
- 安装 geopandas 时出现错误 Command "python setup.py egg_info" failed with error code 1
- 解决 win10 pycurl安装出错 Command "python setup.py egg_info" failed with error code 10
- pip安装jupyter时报错Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Fd4ir0/
- 解决 win10 pycurl安装出错 Command "python setup.py egg_info" failed with error code 10
- 解决 win10 pycurl安装出错 Command "python setup.py egg_info" failed with error code 10
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- 解决安装ipython时Command "python setup.py egg_info" failed with error code 1 in /tmp
- python2.7 安装channels出现Command"python setup.py egg_info" failed with error code 1 in /tmp/pip-build-y
- 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 in /tmp/pip-build*的解决方案