dataabc / weibo-crawler

新浪微博爬虫,用python爬取新浪微博数据,并下载微博图片和微博视频
3.35k stars 751 forks source link

错误 #230

Open RobKing9 opened 2 years ago

RobKing9 commented 2 years ago

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

dataabc commented 2 years ago

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

pip install requests

pip3 install requests

安装就可以。

akafanfan commented 2 years ago

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

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 %