版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ddiioopp123/article/details/83375610
要做作业,老师说要安mysqldb,出了以下错误:
Could not find a version that satisfies the requirement pysqldb (from versions: )
No matching distribution found for pysqldb
经过搜索发现,Python2与Python3的库不一样,mysqldb库是Python2中的扩展库,Python3中想要使用,应该添加pymysql库
所以将命令改成:
pip install pymysql
安装成功。