抓取汇率遇到的坑
报错BeautifulSoup函数not defined

解决方案: 发现是由于我没有安装库导致,
pip install beautifulsoup4安装成功后要在代码中import
from bs4 import BeautifulSoup
使用run xxx.py报错

额…运行要用python xxx.py
报错bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml.

解决方案:
pip install lxml
报错ModuleNotFoundError: No module named ‘openpyxl’

解决方案:
python -m pip install openpyxl
报错ModuleNotFoundError: No module named ‘DrissionPage’

解决方案
pip install DrissionPage
报错 sklearn 缺失

解决方案
pip install scikit-learn
报错TensorFlow缺失

解决方案
pip install tensorflow
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments


