Python Forum
Please help: problem installing/importing langdetect module in Jupyter Notebook
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help: problem installing/importing langdetect module in Jupyter Notebook
#2
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.
(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-32
The Python executable if need to point that.
c:\users\XXX\appdata\local\programs\python\python38-32\python.exe
Reply


Messages In This Thread
RE: Please help: problem installing/importing langdetect module in Jupyter Notebook - by snippsat - Dec-12-2019, 05:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,495 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
Photo Problem installing turtle MasterJediKnight7 17 24,864 Mar-18-2024, 10:22 AM
Last Post: bmohamadyar313
  problem with memory_graph module akbarza 3 421 Mar-04-2024, 10:15 AM
Last Post: snippsat
  importing variables from module 8376459 1 303 Feb-18-2024, 02:24 PM
Last Post: deanhystad
  problem using coloeama module akbarza 3 617 Jan-08-2024, 07:31 AM
Last Post: akbarza
  no module named 'docx' when importing docx MaartenRo 1 975 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 1,110 Nov-15-2023, 06:56 PM
Last Post: jst
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 762 Oct-29-2023, 12:40 PM
Last Post: Mark17
  problem in using subprocess module akbarza 5 1,083 Sep-24-2023, 02:02 PM
Last Post: snippsat
  problem in import module from other folder akbarza 5 1,531 Sep-01-2023, 07:48 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020