无法导入 'ast':Angstrom 上的 Flask 安装(Beaglebone 黑色)
Cannot import 'ast': Flask installation on Angstrom (Beaglebone black)
尝试在我的 beaglebone black (Cloud9 GNOME Image 2013.09.04) 上安装 Flask 时,它遇到模块 ast
(安装 Werkzeug 模块)的 ImportError。我有 Python 2.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 被报告为最新的。
求助!
Angstrom BeagleBone 图像有一个奇怪的,有点破损的 Python 2.7 IIRC 版本,并且 BeagleBoard.org 不再支持它们。您真的应该升级到 BeagleBoard.org (http://beagleboard.org/latest-images) 维护和支持的当前 Debian 映像之一 - 我已经在这些映像上毫无问题地使用了 flask。
尝试在我的 beaglebone black (Cloud9 GNOME Image 2013.09.04) 上安装 Flask 时,它遇到模块 ast
(安装 Werkzeug 模块)的 ImportError。我有 Python 2.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 被报告为最新的。
求助!
Angstrom BeagleBone 图像有一个奇怪的,有点破损的 Python 2.7 IIRC 版本,并且 BeagleBoard.org 不再支持它们。您真的应该升级到 BeagleBoard.org (http://beagleboard.org/latest-images) 维护和支持的当前 Debian 映像之一 - 我已经在这些映像上毫无问题地使用了 flask。