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
#1
Hello, I would like to start by letting you know that I am a layperson. I only started working with Python a few weeks ago, so I am new to this. I would be very grateful for your help!

I want to test out Omar Einea's Goodreads Reviews Scraper (https://github.com/OmarEinea/GoodReadsScraper). I followed his instructions and installed beautifulsoup4, langdetect, selenium and lxml.
I copy-pasted part of his code from reviews.py to a Jupyter Notebook to test it out and ran the following cell:

from Tools import SafeThread
from bs4 import BeautifulSoup
from langdetect import detect
from Browser import Browser
from Writer import Writer
However, I got the following error:

Error:
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-5-f57bdcb0fa9c> in <module> 1 from Tools import SafeThread 2 from bs4 import BeautifulSoup ----> 3 from langdetect import detect 4 from Browser import Browser 5 from Writer import Writer ModuleNotFoundError: No module named 'langdetect'
I thought that perhaps I hadn't installed langdetect correctly, so I ran
 pip install langdetect 
in the command line again, but I received the message that it had already been installed:

Requirement already satisfied: langdetect in c:\users\XXX\appdata\local\programs\python\python38-32\lib\site-packages (1.0.7)
Requirement already satisfied: six in c:\users\XXX\appdata\local\programs\python\python38-32\lib\site-packages (from langdetect) (1.13.0)
Do you have any ideas on how I might be able to solve this problem?
Thank you in advance for your help and understanding!
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,414 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
Photo Problem installing turtle MasterJediKnight7 17 24,821 Mar-18-2024, 10:22 AM
Last Post: bmohamadyar313
  problem with memory_graph module akbarza 3 407 Mar-04-2024, 10:15 AM
Last Post: snippsat
  importing variables from module 8376459 1 297 Feb-18-2024, 02:24 PM
Last Post: deanhystad
  problem using coloeama module akbarza 3 604 Jan-08-2024, 07:31 AM
Last Post: akbarza
  no module named 'docx' when importing docx MaartenRo 1 941 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,079 Nov-15-2023, 06:56 PM
Last Post: jst
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 749 Oct-29-2023, 12:40 PM
Last Post: Mark17
  problem in using subprocess module akbarza 5 1,062 Sep-24-2023, 02:02 PM
Last Post: snippsat
  problem in import module from other folder akbarza 5 1,496 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