pyserial for Python 2.7.2

前端 未结 8 1967
甜味超标
甜味超标 2021-02-03 12:33

I\'m new to Python. According to the internets I was looking for the module pyserial after receiving this error:

ImportError: No module named serial


        
相关标签:
8条回答
  • As a slight update there is still the problem that python 64bit for Windows is not compatible with the pyserial installer.

    What is not mentioned in other answers but I found very useful to know is that Python 32 bit installs and works fine on Win7 64bit and that means the pyserial installer also works fine.

    Obviously if you need 64bit python this is no use to you, but I suspect most of us do not.

    0 讨论(0)
  • 2021-02-03 13:06

    You could try it with pip. (Here a question/answer about installing it)

    Then type in your shell:

    pip install pyserial
    

    Solution:
    The installation of pip on Windows 7 64 is a little tricky: I added my Python and Python/Scripts path to the PATH env.
    Then I opened PythonWin as Administrator, ran ez_setup.py from http://pypi.python.org/pypi/setuptools#downloads with PythonWin. And then I downloaded pip unpacked it and as Administrator I ran python setup.py install on the windows shell and after that pip install pyserial.

    0 讨论(0)
提交回复
热议问题