i have problem to try pymysql.
- my computer is using windows 10
- use python 3.5
- i have installed pymysql via
pip install pymsql
and success, no error. i have checked withpip list
and getPyMySQL (0.7.9)
but when i run import PyMySQL
get error no module named "PyMySQL" where is the problem?
edited :
but if i try import pymysql
, i got error :
Traceback (most recent call last):
File "pymysql1.py", line 1, in <module>
import pymysql
File "C:\Program Files (x86)\Python35-32\lib\site-packages\pymysql\__init__.py", line 29, in <module>
from .err import (
File "C:\Program Files (x86)\Python35-32\lib\site-packages\pymysql\err.py", line 1, in <module>
import struct
File "C:\python\struct.py", line 2, in <module>
pack('hhl', 1, 2, 3)
NameError: name 'pack' is not defined