python - Pyserial ImportError:没有名为serial的模块
问题描述
我正在尝试在 Ubuntu 上使用 PySerial,但它根本不起作用。我尝试了以下方法:
- 安装串口
- 卸载serial,安装pyserial(是的,用pip3)
- sudo apt install python3-serial
- 重新开始(!)
没有任何效果。每次我得到同样的错误(ImportError: No module named serial)
解决方案
推荐阅读
- php - PHP 流套接字:页面加载时与 wss://host:port 的连接中断
- cryptography - 如何使用 VEINS 和 OMNet++ 在 VANET 中模拟 IEEE 1609.2 中的安全服务?
- python - python tsne.transform 不存在?
- python - 找到所有的块
- c# - C# 媒体播放器(VLC 或 WMP)不播放
- python-2.7 - 没有Python预建函数的Netwon的方法:梯度和Hessian的计算
- python - 为什么使用 python 移动文件比直接在终端中移动文件要慢?
- html - 有没有办法使用引导程序将行中的 div 元素对齐到特定列中?
- python - Python Flask:TypeError:视图函数没有返回有效响应
- ffmpeg - FFMPEG 输入区域失败