weibo-crawler
weibo-crawler copied to clipboard
错误
weibo.py", line 21, in
说明你没安装requests,使用命令
pip install requests
或
pip3 install requests
安装就可以。
说明你没有安装请求,使用命令
pip install requests
或者
pip3 install requests
安装就可以了。
yangfan@FanFanMacBookPro weibo-crawler % pip3 install requests
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 Collecting requests Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests) (2.8) Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/site-packages (from requests) (2.0.12) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests) (2021.10.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests) (1.25.11) Installing collected packages: requests DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 Successfully installed requests-2.27.1 yangfan@FanFanMacBookPro weibo-crawler % python3 weibo.py
Traceback (most recent call last):
File "weibo.py", line 22, in