Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between pip's mysql-python and apt-get's python-mysqldb

Tags:

python

mysql

pip

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
like image 680
Steve M Avatar asked Aug 22 '26 16:08

Steve M


1 Answers

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.

like image 63
Brian Moore Avatar answered Aug 25 '26 05:08

Brian Moore



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!