加载中…
个人资料
前任
前任
  • 博客等级:
  • 博客积分:0
  • 博客访问:2,404
  • 关注人气:52
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

python安装pyserial的几种方法

(2016-12-08 10:47:27)
标签:

centos

yii

it

搜索

杂谈

分类: python

此教程使用于ubuntu下

python版本为2.7


pyserial为python的串口程序,一共有三种方法安装

1.pip install pyserial 不推荐

2.sudo apt-get install python-serial 不推荐

3.到官网下载安装包,自己编译,推荐!

https://pypi.python.org/pypi/pyserial/

解压tar xzvf xxxxxx.tar.gz

cd pyserial

sudo python setup.py

安装成功。


虽然以上三种方法都是import serial  但是很多时候比如对字典的处理,只有最后一种安装办法识别。


Ubuntu 14.04 64bit安装IPython:http://www.linuxdiyf.com/linux/13981.html

CentOS 6.5安装IPython3.0:http://www.linuxdiyf.com/linux/10337.html

IPython与Python的区别:http://www.linuxdiyf.com/linux/8992.html

CentOS6.5安装Python2.7.8以及安装iPython:http://www.linuxdiyf.com/linux/7002.html

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有