简体   繁体   English

为python 3.5.2安装MySql

[英]Installing MySql for python 3.5.2

I was trying to installed Mysql as i started off with Django, the methods I have followed: 当我开始使用Django时,我试图安装Mysql,我遵循的方法:

1)pip install MySQL-python 1)pip安装MySQL-python

error: Unable to find vcvarsall.bat( Does MSvisual studio needed?,I am not sure whether I have it or not maybe I got MSVS 2005) 错误:无法找到vcvarsall.bat(MSvisual studio需要吗?,我不确定我是否拥有它或许我得到了MSVS 2005)

2) https://sourceforge.net/projects/mysql-python/ ( only for 2.7 no package for 3.5) 2) https://sourceforge.net/projects/mysql-python/ (仅适用于2.7没有3.5的包)

3) https://dev.mysql.com/downloads/connector/python/ (registry error, it searches for 3.4..) 3) https://dev.mysql.com/downloads/connector/python/ (注册表错误,它搜索3.4 ..)

Can anyone help me with this, I was puzzled I am on windows 7 任何人都可以帮助我,我很困惑,我在Windows 7上

MySQL-python package is for 2.* version MySQL-python包适用于2. *版本

it's been while but i think still there is no mysql connector for 3.5 它已经有一段时间但我认为仍然没有3.5的mysql连接器

your best option is to downgrade to python 3.4 and use mysql cli3ent 你最好的选择是降级到python 3.4并使用mysql cli3ent

pip install mysqlclient

i havn't tested but some say this works for 3.5 but i wouldn't count on it 我没有测试,但有人说这适用于3.5,但我不会指望它

https://pypi.python.org/pypi/PyMySQL https://pypi.python.org/pypi/PyMySQL

good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM