2

尝试在我的 beaglebone black(Cloud9 GNOME Image 2013.09.04)上安装 Flask 时,遇到模块的 ImportError ast(安装 Werkzeug 模块)。我有 Python2.7.3版本,所以这个内置不应该已经存在?

以下是日志:

Downloading/unpacking Flask
  Downloading Flask-0.10.1.tar.gz (544kB): 544kB downloaded
  Running setup.py egg_info for package Flask

    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'docs/_themes/.git'
Downloading/unpacking Werkzeug>=0.7 (from Flask)
  Downloading Werkzeug-0.11.2.tar.gz (1.2MB): 1.2MB downloaded
  Running setup.py egg_info for package Werkzeug
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pip-build-root/Werkzeug/setup.py", line 56, in <module>
        import ast
    ImportError: No module named ast
    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/Werkzeug/setup.py", line 56, in <module>

    import ast

ImportError: No module named ast

我尝试在此板上以常规方式导入ast,但无法这样做。很可能它根本不存在,但我的 python 和 python-dev 被报告为最新的。

帮助!

4

1 回答 1

1

Angstrom BeagleBone 图像有一个奇怪的、有点损坏的 Python 2.7 IIRC 构建,BeagleBoard.org 不再支持它们。您真的应该升级到由 BeagleBoard.org ( http://beagleboard.org/latest-images )维护和支持的当前 Debian 映像之一——我在那些上使用了烧瓶没有任何问题。

于 2015-12-08T01:22:51.020 回答