扫码关注官方订阅号
闭关修行中......
问题已解决,感谢@citaret、@我勒个去
步骤如下:
执行pip search mysql-connector | grep --color mysql-connector-python
pip search mysql-connector | grep --color mysql-connector-python
输出信息是这样的
mysql-connector-python-rf (2.1.3) - MySQL driver written in Python mysql-connector-python (2.0.4) - MySQL driver written in Python
使用pip install mysql-connector-python-rf==2.1.3就可以了
pip install mysql-connector-python-rf==2.1.3
首先需要确保你使用的是不是国内的源先,然后再运行pip:
$ pip install mysql-connector Collecting mysql-connectorect Downloading mysql-connector-2.1.3.zip (353kB) 100% |████████████████████████████████| 358kB 1.9MB/s Building wheels for collected packages: mysql-connector
另1种方式是到官方下载mysql-connector,然后使用源码的方式进行安装。
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
问题已解决,感谢@citaret、@我勒个去
步骤如下:
执行
pip search mysql-connector | grep --color mysql-connector-python输出信息是这样的
使用
pip install mysql-connector-python-rf==2.1.3就可以了首先需要确保你使用的是不是国内的源先,然后再运行pip:
另1种方式是到官方下载mysql-connector,然后使用源码的方式进行安装。