1、刚刚下载了一个Python脚本,结果运行提示:
d@g:~/softs/JSFinder$ python3 JSFinder.py
Traceback (most recent call last):
File "JSFinder.py", line 9, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
2、尝试安装这个‘bs4’:
d@g:~/softs/JSFinder$ pip install bs4
...中间省略...
Successfully installed backports.functools-lru-cache-1.6.1 beautifulsoup4-4.9.1 bs4-0.0.1 soupsieve-1.9.6
3、确实是安装成功了:
d@g:~$ pip list |grep bs4
bs4 (0.0.1)
4、可以运行脚本依然报错:
d@g:~/softs/JSFinder$ python3 JSFinder.py
Traceback (most recent call last):
File "JSFinder.py", line 9, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
本人Python小白,只是能看懂,这个是怎么回事呢?