In Python In Jupyter Notebooks, Unable To Import Wikipedia Api After Installing With "pip3 Install Wikipedia"
While I was unable to import Wikipedia in jupyter notebook, in command prompt I am able to import Wikipedia. How to successfully import in Jupyter?
Solution 1:
Run the following in your notebook and then try your import again.
%pip install Wikipedia
That is the current best way to use pip inside your Jupyter notebook environment, see here. That will help you on a per notebook level.
For fixing it so you don't need that %pip install <package>
in your notebook, you need to sort out which python your Jupyter is using (running !which python
in your running notebook would help) and make sure that you install your packages to that version or environment. For fixing that you may want to look around at already answered questions, such as here, here, here, and here. Those examples are just the tip of the iceberg, if you search around.
Post a Comment for "In Python In Jupyter Notebooks, Unable To Import Wikipedia Api After Installing With "pip3 Install Wikipedia""