0

我输入以下命令在我的 beaglebone black 上安装 pyserial - rev C with angstrom OS:

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

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

4

1 回答 1

0

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

于 2016-01-29T15:57:25.077 回答