bmeaut / python_nlp_2017_fall

Material for the 2017 fall edition of the course "Introduction to Python and Human Language Technologies" at BME AUT
MIT License
12 stars 13 forks source link

'wikipedia' module #7

Open alialsaeedi19 opened 7 years ago

alialsaeedi19 commented 7 years ago

in homework 1 exercise 3.3

when I tried to do : import wikipedia I get this error No module named 'wikipedia'

I tried to install wikipedia module using 'pip install wikipedia' even I tried pip3 install wikipedia but still the same issue

DanielLaszlo commented 7 years ago

Anaconda uses virtual environments, which means that it can happen, that the Python kernel, which is used by the Jupyter notebook is not the same as the one you can run directly from the terminal. This means that if you install a package using pip from the terminal, that won't affect the kernel run by Jupyter notebook. So try to locate the directory of Anaconda, and then look for the default environment there (maybe something like /home/your_name/anaconda/envs/some_environment_name/bin). And run the pip that can be found in this folder. After it restart Jupyter notebook.

alialsaeedi19 commented 7 years ago

it works now!

thank you so much