简体   繁体   中英

ERROR: Could not find a version that satisfies the requirement csv (from versions: none)

I'm trying to install the csv module in Python 3. I have pip install, and I'm using Pycharm. I've tried downloading it in the terminal using both pip install csv and pip3 install csv , but neither of those worked. I get the following error:

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

I also tried downloading csv by going to Pycharm's setting and adding csv as a project interpreter, but it gives me the same error message. Hopefully, you can help me, thanks!

You can't install the csv module because it is already part of Python, so you can just start to use it by including in your file: import csv


.

csv module is already present as default package in python. just use it as follows:

import csv

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM