无法安装csv模块

时间:2017-07-08 16:40:09

标签: python macos csv pip

我是一名mac用户,今天我尝试安装csv,这是命令 pip install csv。但不幸的是,它返回了以下错误

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

我有Python版本2.7.13并且我安装了其他依赖项,例如scikit-learn,numpy and matplotlib,但出于某种原因我无法安装csv

1 个答案:

答案 0 :(得分:35)

csv是python标准库的一部分,因此您无需使用pip进行安装。只需使用它:

import csv