1.首先检查自己所使用的python版本是否有安装request包,找到其安装路径查看

                                               python编程Visual studio 中提示No module named 'requests'解决方法

                     python编程Visual studio 中提示No module named 'requests'解决方法

2.如果没安装需要下载requests安装包

https://github.com/psf/requests

                                        python编程Visual studio 中提示No module named 'requests'解决方法

3.把下载的安装包解压到python的安装目录下安装

4打开cmd,cd requests安装目录

5.setup.py install

6安装完后vs中就不会再显示波浪线

7.需要再vs中处理下否则还提示错误

                                                     python编程Visual studio 中提示No module named 'requests'解决方法

8.在弹出窗中install requests

                                                                         python编程Visual studio 中提示No module named 'requests'解决方法

 

 

 

相关文章:

  • 2021-06-19
  • 2021-07-29
  • 2021-11-13
  • 2022-12-23
  • 2021-10-27
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-12-10
  • 2021-04-18
  • 2021-08-30
相关资源
相似解决方案