在MacOS Sierra上安装mysqlclient时出错(Python 3.6)

2024-09-30 03:23:30 发布

您现在位置:Python中文网/ 问答频道 /正文

正在为我的客户安装PyQl3。在

嗯,我试着按照官方页面https://github.com/PyMySQL/mysqlclient-python上的说明操作。在

所以,一切都很好,直到:

pip install mysqlclient
pip3 install mysqlclient

它让我想起了下一件事:

^{pr2}$

如果有人想办法解决它,请帮帮我。(库是用brew下载的)。 我怀疑我的mac上同时有python2.7和python3.6。但是,实际上我不知道:)

编辑:花了几个小时搜索,仍然找不到答案


Tags: installpiphttpsgithubcom客户官方pip3
2条回答

https://stackoverflow.com/a/43645248/7136153这对我有帮助。 我做以下工作:

brew uninstall mysql-connector-c
brew install mysql
pip3 install mysqlclient

你的点子老了。先升级,然后再试。在

pip3 install -U pip
sudo pip3 install mysqlclient

相关问题 更多 >

    热门问题