weibo-crawler icon indicating copy to clipboard operation
weibo-crawler copied to clipboard

错误

Open RobKing9 opened this issue 3 years ago • 2 comments

weibo.py", line 21, in import requests ModuleNotFoundError: No module named 'requests' 这个错误怎么解决

RobKing9 avatar Oct 19 '21 16:10 RobKing9

说明你没安装requests,使用命令

pip install requests

pip3 install requests

安装就可以。

dataabc avatar Oct 24 '21 11:10 dataabc

说明你没有安装请求,使用命令

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 import requests ModuleNotFoundError: No module named 'requests' yangfan@FanFanMacBookPro weibo-crawler %

akafanfan avatar May 19 '22 08:05 akafanfan