How do you install mysql-connector-python (development version) through pip?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了How do you install mysql-connector-python (development version) through pip?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2352字,纯文字阅读大概需要4分钟。
内容图文
8http://stackoverflow.com/questions/31748278/how-do-you-install-mysql-connector-python-development-version-through-pip/34027037#34027037
I have a virtualenv in which I am running Django 1.8 with Python 3.4
I am trying to get support for MySQL however I am having trouble getting the different connectors to work. I have always used mysql-connector-python with django 1.7 and would like to continue using it.
The development version of mysql-connector-python (2.1.2) seems to have support for Django 1.8 now.
How do I install the development version using pip install (within my virtualenv)? I have tried running the following command:
pip install mysql-connector-python==2.1.2 --allow-external mysql-connector-python
but the 2.1.2 developer version is not available there:
could not find a version that satisfies the requirement mysql-connector-python==2.1.2 (from versions: 1.1.4, 1.1.5, 1.1.6, 1.2.2, 1.2.3, 2.0.1, 2.0.2, 2.0.3, 2.0.4)
Some insecure and unverifiable files were ignored (use --allow-unverified mysql-connector-python to allow).
No matching distribution found for mysql-connector-python==2.1.2
I have tried downloading the file directly from: http://dev.mysql.com/downloads/connector/python/
...but for some reason after installation the connector is not available within my virtualenv
Help please :-) Thank you. ‘
EDIT: I have tried pip install mysql-python
but it is not supported by Python 3.4
share|improve this question | edited Jul 31 ‘15 at 15:08 | asked Jul 31 ‘15 at 14:11 Aivoric 3962515 |
1 Answer
active oldest votesup vote27down vote |
I agree, the debian packages appear to be broken for at least Ubuntu 14.04. The apt-get version and the pip version do not include the 2.1.x releases. To get it done, I had to grab the source:
|
How do you install mysql-connector-python (development version) through pip?
标签:
本文系统来源:http://www.cnblogs.com/kungfupanda/p/5877880.html
内容总结
以上是互联网集市为您收集整理的How do you install mysql-connector-python (development version) through pip?全部内容,希望文章能够帮你解决How do you install mysql-connector-python (development version) through pip?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。