Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install csv module

I am a mac user and today I tried installing csv today and here is command pip install csv.But unfortunately it returned the following error

Could not find a version that satisfies the requirement csv (from versions: )
No matching distribution found for csv

I have Python version 2.7.13 and I have installed other dependencies like scikit-learn,numpy and matplotlib, but for some reason I can't install csv.

like image 785
saasa Avatar asked Jul 08 '17 16:07

saasa


People also ask

What module is needed for CSV file?

Python CSV Module Python provides a CSV module to handle CSV files. To read/write data, you need to loop through rows of the CSV.

How install CSV Linux?

If you want to install csv for Python 3, then you'll need to install python3-setuptools and python3-dev and then pip3 install csv .

Is CSV module built in?

CSV files are used to store a large number of variables – or data. They are incredibly simplified spreadsheets – think Excel – only the content is stored in plaintext. And the CSV module is a built-in function that allows Python to parse these types of files.


Video Answer


1 Answers

csv is part of python's standard library so you don't need to install it with pip. Just use it with:

import csv
like image 78
Micky Loo Avatar answered Sep 27 '22 19:09

Micky Loo