python3.6.5を使用して、シリアルの設定を行なっていますが、AttributErrorが発生しますので、対策方法を教えて頂けないでしょうか。
コンソールからの入力
import serial
ser = serial.Serial('/dev/cu.usbmonitor1411',9600)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'serial' has no attribute 'Serial'
pytuon開発環境
MacOS 10.13.4
python 3.6.5
pyserialのinstall状況
[akihiko-no-MacBook-Pro:~ volitan$ pip uninstall serial
Skipping serial as it is not installed.
[akihiko-no-MacBook-Pro:~ volitan$ pip install pyserial
Collecting pyserial
Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl
Installing collected packages: pyserial
Successfully installed pyserial-3.4
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー