国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Python > 正文

Python使用pip安裝pySerial串口通訊模塊

2020-02-22 23:46:04
字體:
來源:轉載
供稿:網友

pySerial封裝了對串口的訪問,供大家參考,具體內容如下

特性

在支持的平臺上有統一的接口。
通過python屬性訪問串口設置。
支持不同的字節大小、停止位、校驗位和流控設置。
可以有或者沒有接收超時。
類似文件的API,例如read和write,也支持readline等。
支持二進制傳輸,沒有null消除,沒有cr-lf轉換。

有關Python的環境配置請參考: 《Python入門》Windows 7下Python Web開發環境搭建筆記

而 pip 是隨 Python 一同安裝的,如下圖:

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

G:/>pip  Usage:  pip <command> [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>        Path to a verbose appending log.  --proxy <proxy>       Specify a proxy in the form                [user:passwd@]proxy.server:port.  --retries <retries>     Maximum number of retries each connection should                attempt (default 5 times).  --timeout <sec>       Set the socket timeout (default 15 seconds).  --exists-action <action>  Default action when a path already exists:                (s)witch, (i)gnore, (w)ipe, (b)ackup.  --trusted-host <hostname>  Mark this host as trusted, even though it does                not have valid or any HTTPS.  --cert <path>        Path to alternate CA bundle.  --client-cert <path>    Path to SSL client certificate, a single file                containing the private key and the certificate                in PEM format.  --cache-dir <dir>      Store the cache data in <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。

安裝時可能會出現以下提示:

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 黄山市| 专栏| 梅河口市| 泸定县| 虎林市| 济阳县| 建始县| 铅山县| 彝良县| 孝感市| 霍林郭勒市| 永昌县| 桐城市| 翁源县| 莎车县| 靖远县| 兴业县| 开江县| 晴隆县| 甘泉县| 崇州市| 乌拉特中旗| 水富县| 化隆| 长沙市| 万源市| 黑山县| 嵊泗县| 三原县| 克拉玛依市| 乡城县| 北京市| 海晏县| 紫云| 阜康市| 井冈山市| 太谷县| 永川市| 西盟| 尼勒克县| 休宁县|