3

What is the difference between pip's mysql-python and apt-get's python-mysqldb?

$ pip search mysql-python
MySQL-python    - Python interface to MySQL

And:

$ apt-cache search python-mysqldb
python-mysqldb  - Python interface to MySQL
1
  • I think they're the same thing, although they may be different versions. If you've installed Python from the Debian/Ubuntu package, it's probably simplest to use their packaged version of python-mysqldb as well. Commented May 21, 2013 at 18:08

1 Answer 1

1

pip should get you the newest version of mysql-python which is available for the version of python that you're using from the pip repository.

Apt will give you the mysql-python version that is deemed "stable" by the debian, or ubuntu repository managers.

The functionality (or security) of the packages could be different based on version differences.

The benefit of using pip install mysql-python, is that you can be using virtualenv and have the specific version installed for that package or framework.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.