美文网首页Django开发随笔
在python3.x下conda安装mysql

在python3.x下conda安装mysql

作者: 天才一般的幼稚 | 来源:发表于2019-01-08 21:41 被阅读0次

问题描述:今天准备在之前装好的虚拟环境中安装一下mysql。网上大多使用mysql-python或者使用mysqlclient安装的。mysql-python是python2使用的,mysqlclient是python3使用的。但是二者均使用pip install 安装。有了之前的教训,根本不敢用pip,最后在stackoverflow找到了一个解决方案。

解决方案:

conda install -c bioconda mysqlclient

安装过程 测试导入

参考文献:

python - How can I use Conda to install MySQLdb? - Stack Overflow

相关文章

网友评论

    本文标题:在python3.x下conda安装mysql

    本文链接:https://www.haomeiwen.com/subject/rjqirqtx.html