安装pyserial到win7-64位电脑

win764位下无法安装pyserial-win32,所以只能下载源码安装。

从http://pyserial.sourceforge.net/ 找到源码。

具体步骤:

A couple additional details I found necessary:
1. In the Command Prompt window, it was necessary to modify the PATH statement to acknowledge the Python installation with
PATH c:\python32;%PATH%

2. Needed to install the file pyserial-2.6.tar.gz file in the directory c:\Python27\Lib\site-packages\pyserial-2.6, then unzip it

3. Needed to run the package installation from the directory c:\Python32\Lib\site-packages\pyserial-2.6, and the command was: python setup.py install

 

然后就可以用python操作串口/编程啦。

你可能感兴趣的:(安装pyserial到win7-64位电脑)