Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'unidecode' yet I have the module installed

I am trying to remove accents from a Python list of strings by converting it from UTF-8 to ASCII. I have read answers to multiple questions here in StackOverflow that suggest using the unidecode function from the unidecode package. I have installed it using conda but if I write

import unidecode

I get

ModuleNotFoundError: No module named 'unidecode'

I have tried excluding unidecode and reinstalling it (using both conda and pip) and I checking if the PATH was pointing to all Anaconda locations, as advised in Alexander McFarlane's answer to this question.

like image 615
Felipe Ito Avatar asked May 10 '19 19:05

Felipe Ito


1 Answers

I had the same problem, capitalizing Unidecode in the pip command worked for me.

pip install Unidecode

https://pypi.org/project/Unidecode/

like image 103
Natalie Olivo Avatar answered Sep 21 '22 12:09

Natalie Olivo