pyserial for Python 2.7.2

前端 未结 8 1970
甜味超标
甜味超标 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条回答
  •  迷失自我
    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.

提交回复
热议问题