Terminal: pip install bs4 pip install xlwt PyCharm import bs4 from bs4 import BeautifulSoup import xlwt 总结 其他在Setting 或者 在cmd 或者下载官方包 都没办法导入的可以试试