'ModuleNotFoundError: No module named 'wget'
I am trying to import wget in my python 3.8 running in the notebook. I tried pip install wget it says "Requirement already satisfied: wget in c:\users\mahmu\appdata\local\programs\python\python38\lib\site-packages (3.2)" but getting the following error when trying to import it:
if os.name=='nt':
!pip install wget
import wget
Output
Collecting wget
Using cached wget-3.2.zip (10 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Using legacy 'setup.py install' for wget, since package 'wheel' is not installed.
Installing collected packages: wget
Running setup.py install for wget: started
Running setup.py install for wget: finished with status 'done'
Successfully installed wget-3.2
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_10204/1879926059.py in <module>
1 if os.name=='nt':
2 get_ipython().system('pip install wget')
----> 3 import wget
ModuleNotFoundError: No module named 'wget'
Solution 1:[1]
notebook needs to restart to import modules that where installed while the notebook was running. so install the module then restart the notebook
you might get a message like this in Jupiter notebook when you in install a module while running:
Note: you may need to restart the kernel to use updated packages.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | floatingCatsAndDogs |
