mysql-connector-python 2.0.1-1 与 python-mysql.connector 冲突 [英] mysql-connector-python 2.0.1-1 confilct with python-mysql.connector

查看:42
本文介绍了mysql-connector-python 2.0.1-1 与 python-mysql.connector 冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我安装 mysql-connector-python 2.0.1-1 (http://dev.mysql.com/downloads/connector/python/) 在 Ubuntu 14.04 上,软件中心抱怨与 python-mysql.connector 冲突.我应该卸载 python-mysql.connector 吗?

When I was installing mysql-connector-python 2.0.1-1 (http://dev.mysql.com/downloads/connector/python/) on Ubuntu 14.04, the Software Center complaints about confilcting with python-mysql.connector. Should I uninstall python-mysql.connector?

推荐答案

您应该考虑为需要该特定版本的项目创建一个虚拟环境(如 pyenv 或 virtualenv).这样你就可以拥有两个版本而不会相互冲突.卸载/重新安装可能需要更长的时间,但从长远来看,养成防止此类问题的好习惯.

You should look into creating a virtual environment (like pyenv or virtualenv) for the project that requires that particular version. That way you can have both versions without them conflicting with each other. It might take longer that uninstalling / reinstalling, but on the long term it is a good habit to form to prevent these kind of issues.

这篇关于mysql-connector-python 2.0.1-1 与 python-mysql.connector 冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆