'ModuleNotFoundError: No module named 'validate_email'
I am trying to execute the following code in python pandas.
from email_validator import validate_email
from pandas import DataFrame, read_csv
import pandas as pd
file =r'sampe.csv'
df=pd.read_csv(file,usecols =['name','email','phone'])
print(df)
But it gives ModuleNotFoundError: No module named 'validate_email' error!
I tried from validate_email import validate_email also as many reference articles suggested.
I have installed python 3.7 and anaconda. Please, can someone, give me a tip to overcome this problem?
Solution 1:[1]
try installing email validator using this:
conda install -c conda-forge email_validator
make sure you are using correct conda environment
Solution 2:[2]
Please install validate_email package.
pip install validate_email
And please import it in the code.
import validate_email
Solution 3:[3]
You need to install validate_email package.
pip install validate_email
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | M_S_N |
| Solution 2 | Wesley Yang |
| Solution 3 | Mohit Rathod |
