我安装了pyserial 2.5,我的python版本是3.2.1,当我尝试导入串口时显示选项但是当我运行相同的程序时出错了ImportError: No module named serial和我的编辑器是aptana studio有没有更好的解决方案使用python或PHP将十六进制数据发送到串行端口
I had installed pyserial 2.5 and my python version is 3.2.1 when I try to import serial it show the option but when I run the same program got errorImportError: No module named serial and my editor is aptana studio is there any better solution to send hex data to serial port by using either python or PHP
最满意答案
我怀疑你已经安装了Pyserial,直接将其解压缩到你的site-packages文件夹。
如果您改为安装它
python3 setup.py installsetup.py将转换文件以与Python 3兼容。
I suspect you have installed Pyserial by unzipping it directly to your site-packages folder.
If you instead install it by
python3 setup.py installsetup.py will convert the files to be compatible with Python 3.
更多推荐
发布评论