【python】mysql connector
来源:互联网 发布:网络暴力的调查报告 编辑:程序博客网 时间:2024/05/21 17:29
使用mysql,报错如下:
from mysql import connector
ImportError: No module named 'mysql'
原因是没有安装mysql 的 connector。
解决办法是:
sudo pip install mysql-connector-python-rf
如果报错:
option --single-version-externally-managed not recognized
就试:
sudo pip install --egg mysql-connector-python-rf
然后打开python,输入“import mysql.connector”,没有错就说明好了。
https://stackoverflow.com/questions/22100757/can-not-get-mysql-connector-python-to-install-in-virtualenv
阅读全文
0 0
- MySQL Connector/Python
- mysql-connector-python安装
- Python:安装MYSQL Connector
- 【python】mysql connector
- python安装mysql-connector-python
- MySQL Connector/Python 安装、测试
- MySQL Connector/Python 安装、测试
- MySQL Connector/Python 安装、测试
- raspberry install mysql-connector-python
- ubuntu安装mysql-connector-python
- ubuntu安装mysql-connector-python
- mysql与python连接器 MySQL Connector/Python
- Python 使用mysql-connector-python访问MySql
- mysql-connector-python, mysql-connector-python-rf and mysql-connector-repackaged
- python 版本的mysql connector 的commit
- Chapter 1: Introduction to MySQL Connector/Python
- 【MySQL.Connector】Python下读取数据库信息
- Introduction of Python package: MySQL Connector
- Java基础总结-基本语法概念-3
- java 去掉html标签
- 【个人笔记】json基本操作
- php从数据库中取二进制流文件转换为图片,图片以二进制流存入数据库实现
- 一生学做人
- 【python】mysql connector
- 二叉树的建立和遍历程序代码(Java,C)
- 学习Java分为几个阶段,分别是什么?
- Intellij – 无法使用较新的Java 8类 – 错误:“API的用法记录为@since 1.6+
- nginx
- Redis集合
- 谈谈对Spring IOC的理解
- 系统编程函数之文件目录操作
- 排除工作日计算任务是否超期