Linked Questions

1 vote
1 answer
24k views

I am using python 3.4 on Lubuntu, which has by default both python2.7 and python3.4 I installed MySQLdb and am trying to use it in python3.4 using pip3 But merely import MySQLdb results in this ...
Tahseen's user avatar
  • 133
36 votes
14 answers
84k views

I'm using Amazon Linux AMI release 2013.09. I've install virtualenv and after activation then I run pip install mysql-connector-python, but when I run my app I get an error: ImportError: No module ...
slim's user avatar
  • 2,593
50 votes
5 answers
63k views

I just solved some problems in my Django 1.3 app by using PyMySQL instead of MySQLdb. I followed this tutorial on how to make the switch: http://web-eng-help.blogspot.com/2010/09/install-mysql-5-for-...
Hafiz's user avatar
  • 4,287
9 votes
8 answers
6k views

I need to call MySQL stored procedure from my python script. As one of parameters I'm passing a unicode string (Russian language), but I get an error; UnicodeEncodeError: 'latin-1' codec can't ...
Gleb's user avatar
  • 1,432
1 vote
3 answers
5k views

I have a pandas dataframe with many different columns and will like to insert specific columns into a mySQL database. I understand from the documentation that the way to do so is to use to_sql like ...
Poh Zi How's user avatar
  • 1,578
0 votes
1 answer
7k views

** Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279** I am getting this error when i am installing mysqlclient or mysql-...
user7294879's user avatar
0 votes
2 answers
6k views

I've been struggling outstandingly lot with the installation of MySQL for Python recently. I've read all forum comments that I could find, either here or other related forums, but none of the ...
lazarea's user avatar
  • 1,369
1 vote
1 answer
6k views

I'm playing with my first Raspberry Pi 3 project, and I've hit a snag. I've found some example code which uses MySQL import MySQLdb as mdb, but when I try to run the code I get a 'No module named '...
GerHick's user avatar
  • 75
0 votes
2 answers
2k views

Recently I installed Python 3.4.3 in my environment (Windows 8.1) and tried to deploy a simple Django server. When I runned the command python manage.py runserver but the following exceptions appeared:...
Matheus Santos's user avatar
0 votes
0 answers
621 views

I have written a little script using python3 that gets a RSS news feed using the feedparser library. I then loop through the entries (dictionary) and then use a try/except block to insert the data ...
mp252's user avatar
  • 493
-4 votes
1 answer
311 views

I want my Python code to connect to my SQL server. Everything I find on Google is for Python 3.2 or older. Is there any possibility that I can connect to a MySQL server without installing anything? ...
Anton's user avatar
  • 552