'ImportError: No module named _____ -- in python
I'm having trouble importing modules such as pandas and BS4 in python on VScode, after pip installing them through terminal.
I receive the same error message "ImportError: No module named bs4" every time.
Any suggestions are greatly appreciated
Solution 1:[1]
- Uninstall your Python and install it again.
- Don't install packages through the VSCode terminal.
- Install them outside the VSCode and then import them into your program.
- For installing
bs4, use the following command:
pip install beautifulsoup4
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 | Reza K Ghazi |
