0
votes

I got 2 shell script file start with

  1. !/usr/bin/env python 

  2. !/usr/local/bin/python3

both shell script uses "import cchardet"

first one errors " ImportError: No module named cchardet "

but, second one works perfect.

problem is, I need to use first one's script. Is there way around?

and also, is cchardet stuck in python3 environment?

1

1 Answers

0
votes

cchardet is not part of the standard library, so you must have installed it using pip3 and it's available in fact to python3.

To have it available to python install it with pip like:

pip install cchardet