cannot import csv

M

mir nazim

hi,
i m unable to import csv module.
it says:

ImportError: no module named csv.

plz help me.

is csv module not a part of standard dist?
 
P

Peter Hansen

mir said:
hi,
i m unable to import csv module.
it says:

ImportError: no module named csv.

plz help me.

is csv module not a part of standard dist?

c:\>python
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on
win32'c:\\a\\python23\\lib\\csv.py'


It surely is on Python 2.3, anyway.

-Peter
 
M

Mark McEahern

What version Python are you using? csv was introduced with 2.3 (I
think).

// m
 
S

Skip Montanaro

Mark> What version Python are you using? csv was introduced with 2.3 (I
Mark> think).

Correct. Our goal when writing it was for it to be 2.2-compatible though,
so you ought to be able to grab csv.py and _csv.c from the 2.3 distro and
drop it into your 2.2 distro (with suitable setup.py or Modules/Setup.local
mods of course).

Skip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top