Python 在Windows和Unix下不同。fdexpect模块需要Serial.fileno(),Windows下不存在该文件,因此需要Cygwin。该链接现在似乎已断开。 fd = os.open(TTY, os.O_NONBLOCK|os.O_RDWR|os

Python 在Windows和Unix下不同。fdexpect模块需要Serial.fileno(),Windows下不存在该文件,因此需要Cygwin。该链接现在似乎已断开。 fd = os.open(TTY, os.O_NONBLOCK|os.O_RDWR|os,python,pexpect,Python,Pexpect,在Windows和Unix下不同。fdexpect模块需要Serial.fileno(),Windows下不存在该文件,因此需要Cygwin。该链接现在似乎已断开。 fd = os.open(TTY, os.O_NONBLOCK|os.O_RDWR|os.O_NOCTTY) child = fdpexpect.fdspawn(fd) python nano wget # Install 'distribute', so we can use it to install 'pip': wg

在Windows和Unix下不同。fdexpect模块需要Serial.fileno(),Windows下不存在该文件,因此需要Cygwin。该链接现在似乎已断开。
 fd = os.open(TTY, os.O_NONBLOCK|os.O_RDWR|os.O_NOCTTY)
 child = fdpexpect.fdspawn(fd)
python
nano
wget
# Install 'distribute', so we can use it to install 'pip':
wget.exe http://python-distribute.org/distribute_setup.py

# Execute the downloaded script:
python distribute_setup.py

# Now do the 'pip' installer:
wget --no-check-certificate https://raw.github.com/pypa/pip/master/contrib/get-pip.py

python get-pip.py

# Install pyserial for serial comms w/pexpect support via Serial.fileno()
pip install pyserial