Test that it work from command line and then you most check that same Python interpreter is set in PyCharm.
A common problem is that you can be using eg Anaconda with Jupyter Notebook,the it will point to that Python interpreter.
You can also install langdetect to Anaconda as shown under here.
A common problem is that you can be using eg Anaconda with Jupyter Notebook,the it will point to that Python interpreter.
You can also install langdetect to Anaconda as shown under here.
(forum_env) E:\div_code\forum_env λ pip install langdetect Collecting langdetect Downloading .... Successfully installed langdetect-1.0.7 # Test (forum_env) E:\div_code\forum_env λ ptpython >>> from langdetect import detect # No errors >>> detect.__code__ <code object detect at 0x04C2BBD0, file "e:\div_code\forum_env\lib\site-packages\langdetect\detector_factory.py", line 126>For you this is the Base interpreter.
c:\users\XXX\appdata\local\programs\python\python38-32The Python executable if need to point that.
c:\users\XXX\appdata\local\programs\python\python38-32\python.exe