使用angstrom在beaglebone black上安装pyserial时出错

时间:2016-01-21 14:22:17

标签: pyserial beagleboneblack angstrom-linux

我输入以下命令在我的beaglebone black上安装pyserial - 使用angstrom OS安装c:

pip install pyserial

我收到以下错误信息:

Downloading/unpacking pyserial
  Running setup.py egg_info for package pyserial
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pip-build-root/pyserial/setup.py", line 23, in <module>
        import serial
      File "serial/__init__.py", line 10, in <module>
        import importlib
    ImportError: No module named importlib
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/tmp/pip-build-root/pyserial/setup.py", line 23, in <module>

    import serial

  File "serial/__init__.py", line 10, in <module>

    import importlib

ImportError: No module named importlib

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/pyserial
Storing complete log in /home/root/.pip/pip.log

请问我该如何解决这个问题。

1 个答案:

答案 0 :(得分:0)

使用来自http://beagleboard.org/latest-images的官方Debian图像 - 旧的Angstrom图像具有破坏的Python构建,并且BeagleBoard.org几年来一直不支持。