尝试在我的 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 被报告为最新的。
帮助!