1 개요[ | ]
- ModuleNotFoundError: No module named 'bs4'
Console
Copy
$ python3 -c "from bs4 import BeautifulSoup"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'bs4'
Console
Copy
$ python3 -c "import BeautifulSoup"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'BeautifulSoup'
Console
Copy
$ pip3 install BeautifulSoup4
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting BeautifulSoup4
Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
|████████████████████████████████| 115 kB 2.9 MB/s
Collecting soupsieve>1.2
Downloading soupsieve-2.2.1-py3-none-any.whl (33 kB)
Installing collected packages: soupsieve, BeautifulSoup4
Successfully installed BeautifulSoup4-4.9.3 soupsieve-2.2.1
Console
Copy
$ python3 -c "from bs4 import BeautifulSoup"
$
2 같이 보기[ | ]
로그인하시면 댓글을 쓸 수 있습니다.