Package is installed but not recognized

490 Views Asked by At

I'm trying to use chardet package in python, on Visual Studio 2017 15.6.2

Even when I have the chardet package installed, it is not recognized.

What could possibly be wrong?

Here is a screen capture

https://i.stack.imgur.com/vtCB5.png

If I try to run I get this exception

ModuleNotFoundError
  Message=No module named 'chardet'
1

There are 1 best solutions below

0
On

As BoarGules commented, I was using the wrong environment. The package was installed on another environment.

I switched to Anaconda 5, where the package is installed, and now it works. I leave a screen capture on how to change to Anaconda.

https://i.stack.imgur.com/2WSAi.png