Python 没有名为 serial 的模块/没有名为 requests 的模块 [英] Python no module named serial / no module named requests

查看:106
本文介绍了Python 没有名为 serial 的模块/没有名为 requests 的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是今天第二次发生这种情况..

This is the second time today this has happened..

我之前尝试导入请求,但出现导入错误:没有名为请求的模块

I tried to import requests earlier and I got an Import Error: no module named requests

连续剧也一样

我用谷歌搜索了这个废话,没有发现任何有用的东西.关于发生了什么的任何想法?我正在尝试使用 pyserial 从 arduino 获取输入

I googled the crap out of this and nothing I've found works. Any ideas as to what's going on? I'm trying to use pyserial to take input from an arduino

推荐答案

pip install requests
pip install pyserial

应该这样做(除非你没有安装 pip)

should do it (unless you don't have pip installed)

这篇关于Python 没有名为 serial 的模块/没有名为 requests 的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆