使用beautifulsoup4错误
我看了pip listC:\Users\??????>pip list
Package Version
---------------------------------- ---------
alabaster 0.7.12
altgraph 0.16.1
anaconda-client 1.7.2
anaconda-navigator 1.9.7
anaconda-project 0.8.2
asn1crypto 0.24.0
astroid 2.2.5
astropy 3.1.2
atomicwrites 1.3.0
attrs 19.1.0
Babel 2.6.0
backcall 0.1.0
backports.entry-points-selectable1.1.0
backports.os 0.1.1
backports.shutil-get-terminal-size 1.0.0
beautifulsoup4 4.7.1
bitarray 0.8.3
bkcharts 0.2
bleach 3.1.0
bokeh 1.0.4
boto 2.49.0
Bottleneck 1.2.1
certifi 2019.3.9
cffi 1.12.2
但在IDLE上:
>>> import beautifulsoup4
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import beautifulsoup4
ModuleNotFoundError: No module named 'beautifulsoup4'
>>> import beautifulsoup
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import beautifulsoup
ModuleNotFoundError: No module named 'beautifulsoup'
>>> import beautifulsoup4
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
import beautifulsoup4
ModuleNotFoundError: No module named 'beautifulsoup4'
>>> import beautifulsoup4
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import beautifulsoup4
ModuleNotFoundError: No module named 'beautifulsoup4'
>>>
跪求大佬解答 注意看第一个代码的第19行 一、安装
pip install beautifulsoup4
二、导入
form bs4 import BeautifulSoup
https://blog.csdn.net/weixin_43930694/article/details/90142678 是 import bs4 额
页:
[1]