pySerial封装了对串口的访问,供大家参考,具体内容如下

特性

在支持的平台上有统一的接口。

通过python属性访问串口设置。

支持不同的字节大小、停止位、校验位和流控设置。

可以有或者没有接收超时。

类似文件的API,例如read和write,也支持readline等。

支持二进制传输,没有null消除,没有cr-lf转换。

有关Python的环境配置请参考: 《Python入门》Windows 7下Python Web开发环境搭建笔记

而 pip 是随 Python 一同安装的,如下图:

pip 帮助信息,在命令行中输入 pip 就能看到以下的帮助信息

G:>pip

Usage:

pip [options]

Commands:

install Install packages.

uninstall Uninstall packages.

freeze Output installed packages in requirements format.

list List installed packages.

show Show information about installed packages.

search Search PyPI for packages.

wheel Build wheels from your requirements.

help Show help for commands.

General Options:

-h, --help Show help.

--isolated Run pip in an isolated mode, ignoring

environment variables and user configuration.

-v, --verbose Give more output. Option is additive, and can be

used up to 3 times.

-V, --version Show version and exit.

-q, --quiet Give less output.

--log Path to a verbose appending log.

--proxy Specify a proxy in the form

[user:passwd@]proxy.server:port.

--retries Maximum number of retries each connection should

attempt (default 5 times).

--timeout Set the socket timeout (default 15 seconds).

--exists-action Default action when a path already exists:

(s)witch, (i)gnore, (w)ipe, (b)ackup.

--trusted-host Mark this host as trusted, even though it does

not have valid or any HTTPS.

--cert Path to alternate CA bundle.

--client-cert Path to SSL client certificate, a single file

containing the private key and the certificate

in PEM format.

--cache-dir

--no-cache-dir Disable the cache.

--disable-pip-version-check

Don't periodically check PyPI to determine

whether a new version of pip is available for

download. Implied with --no-index.

安装 pySerial 串口通讯模块

使用 pip 来安装非常简单,只需使用以下命令:pip install pyserial。

安装时可能会出现以下提示:

python安装pyserial模块_Python使用pip安装pySerial串口通讯模块相关推荐

  1. python串口模块_Python使用pip安装pySerial串口通讯模块

    pySerial封装了对串口的访问,供大家参考,具体内容如下 特性 在支持的平台上有统一的接口. 通过python属性访问串口设置. 支持不同的字节大小.停止位.校验位和流控设置. 可以有或者没有接收 ...

  2. python安装rarfile模块_python windows下安装pip及rarfile

    python之所以被广泛使用,倒不见得是本身语法简单,而是而nodejs/javascript一样把三方库的依赖管理简化了,而不用和java一样非得通过maven管理,而且还得打包后在classpat ...

  3. pip安装mysql模块_使用pip安装mysql模块for python

    我正在尝试使用pip安装mysql模块for python,但遇到了一个错误:mysqlclient.lib(typelib.obj) : error LNK2001: unresolved exte ...

  4. python安装mysqldb模块,如何使用pip安装Python MySQLdb模块?

    How can I install the MySQLdb module for Python using pip? 解决方案 It's easy to do, but hard to remembe ...

  5. python安装pyserial模块_Python使用模块Pyserial模块报

    用pip安装pyserial后:sudo -H pip  install pyserial,运行新建的程序,名称为serial.py,程序中用到:import serial.toos.list_por ...

  6. python没有pil模块_Python离线安装PIL 模块的方法

    Python离线安装PIL 模块的方法 发布时间:2020-09-02 00:14:51 来源:脚本之家 阅读:122 作者:那. python的库一般都用pip安装. 但是有时候也会出现在线安装失败 ...

  7. python os模块安装方法_基于python中pygame模块的Linux下安装过程(详解)

    一.使用pip安装Python包 大多数较新的Python版本都自带pip,因此首先可检查系统是否已经安装了pip.在Python3中,pip有时被称为pip3. 1.在Linux和OS X系统中检查 ...

  8. pip安装了 但是python找不到_python安装完毕后,用pip安装提示找不到ssl模块怎么解决?...

    python安装完毕后,提示找不到ssl模块: 例如这样: pip is configured with locations that require TLS/SSL, however the ssl ...

  9. python用pip安装numpy完整命令_Python使用pip安装Numpy模块

    安装Numpy模块一般有两种安装方法: 一:下载模块对应的.exe文件,直接双击运行安装 二:下载模块对应的.whl文件,使用pip安装 对于exe文件的安装比较简单,都是双击运行,这里就不说了. 这 ...

  10. python 怎么安装电脑摄像头模块_Python模块及安装

    Python模块及安装 09-Python模块及安装思维导图下载 1.模块的使用及安装 <1>Python中的模块 在Python中有一个概念叫做模块(module),这个和C语言中的头文 ...

最新文章

  1. 【Binary Tree Level Order Traversal】cpp
  2. NLPIR 分词准确率接近98.23%
  3. Cookie与Session的区别
  4. python数据分析工具大全_Python数据分析工具
  5. React事件优雅绑定
  6. shutdown小程序
  7. CYQ.Data 轻量数据层之路 使用篇-MAction 数据查询 视频 D (二十一)
  8. 图片去水印工具:Inpaint 7.2中文专业破解版下载及使用方法
  9. win10浏览器闪退_Edge浏览器闪退怎么解决 Edge浏览器闪退修复方法大全
  10. jav使用python模型实现方案
  11. 微信的商户单号和交易单号_教你获取支付宝和微信的订单号、商户单号,涨知识了...
  12. 肥宅快乐还是不快乐,拓展欧几里得,exgcd???bfs
  13. iOS高德地图路径选择
  14. 基于分数傅里叶变换的汽车雷达通信一体化系统干扰抑制
  15. [数据科学]000.我为什么当数据科学家
  16. 基岩版刷铁傀儡机制和Java_我的世界基岩版刷铁塔怎么做好?
  17. 在线引流工具Tcpcopy原理、环境搭建、使用、采坑
  18. linux基础测试题
  19. js知道顶点和底边中点坐标和长度,求等腰三角形其他两个顶点的坐标
  20. Synopsys 各软件 Verdi VCS DC PT详细破解说明

热门文章

  1. 「第六篇」0day漏洞
  2. java org.jdom_Jdom使用指南
  3. 用ViewPager实现微信tab切换
  4. ZXPInstaller for mac(zxp文件安装器)免费版
  5. 基于单片机的智能温度监测系统的代码
  6. Windows聚焦的图片下载
  7. linux yum换源(国内阿里源)
  8. python判断是否为素数_python判断一个数是否为素数
  9. Xshell、MobaXterm、Secure CRT等工具用法
  10. 有关电脑新手入门教程,电脑入门基础知识有哪些?