推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
bdbai
V2EX  ›  Python

Python 3.4.3 不能正常运行

  •  
  •   bdbai ·
    bdbai · Jun 27, 2015 via iPhone · 5366 views
    This topic created in 4149 days ago, the information mentioned may be changed or developed.
    源码安装,make install到一半显示generate-posix-vars failed,但目录下已经有了python.exe(Linux平台),传-V或--help有输出,传-S可以用但是自带库没有了,传-或-i或不传参数提示Failed to import the site module,最后一行ImportError: No module named '_sysconfigdata'
    环境?不要笑 诺亚舟NP1500 busybox1.1
    18 replies  •  2015-06-29 20:43:47 +08:00
    zjxubinbin
    zjxubinbin
    Jun 28, 2015
    1
    GCC版本多少?
    bdbai
    bdbai
    OP
    Jun 28, 2015 via iPhone
    2
    @zjxubinbin 3.4.4
    lilydjwg
    lilydjwg
    Jun 28, 2015
    3
    _sysconfigdata.py 这个文件没生成成功吧。你看看那个 failed 附近有没有更多的信息。

    也许你自己放一个假的 _sysconfigdata.py 可以绕过这个问题,不过也许会导致更难查到的奇怪 bug。
    lilydjwg
    lilydjwg
    Jun 28, 2015
    4
    PS: 这 gcc 版本真够古老的。
    bdbai
    bdbai
    OP
    Jun 28, 2015 via iPhone
    5
    @lilydjwg 编译两次都这样 最后两行:
    File "path/to/python/Lib/sysconfig.py", line 410, in _init_posix
    from _sysconfigdata import build_time_vars
    ImportError...(上面写了)
    预感放个假的问题更多
    zjxubinbin
    zjxubinbin
    Jun 28, 2015
    6
    @bdbai 换个新一点的GCC试试吧
    bdbai
    bdbai
    OP
    Jun 28, 2015 via iPhone
    7
    @zjxubinbin 新的都好大 目测还剩一点点ROM空间放不下
    lilydjwg
    lilydjwg
    Jun 28, 2015
    8
    @bdbai 环境不变,问题不解决,你编译一万次都一样啊。你编译安装过程中有没有报错?
    lilydjwg
    lilydjwg
    Jun 28, 2015
    9
    @bdbai 你为什么要把 gcc 也放到设备上?
    bdbai
    bdbai
    OP
    Jun 28, 2015 via iPhone
    10
    @lilydjwg 有 generate-posix-vars failed
    那个gcc是里面自带的
    Septembers
    Septembers
    Jun 28, 2015 via Android
    11
    交叉编译
    lilydjwg
    lilydjwg
    Jun 28, 2015
    12
    @bdbai 是有的嘛。详情呢?
    bdbai
    bdbai
    OP
    Jun 28, 2015 via iPhone
    13
    @lilydjwg 上面有一小段脚本在调用生成出来的python.exe 手动调用的时候不是Segmentation fault就是Illegal instruction
    lilydjwg
    lilydjwg
    Jun 28, 2015
    14
    @bdbai 怎么越听感觉问题越严重了呢……
    bdbai
    bdbai
    OP
    Jun 28, 2015 via iPhone
    15
    oott123
    oott123
    Jun 29, 2015 via Android
    16
    诺亚舟…
    bdbai
    bdbai
    OP
    Jun 29, 2015 via iPhone
    17
    @oott123 不要笑 搞定给你糖吃
    oott123
    oott123
    Jun 29, 2015
    18
    @bdbai 然而我搞不定
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4819 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 08:58 · PVG 16:58 · LAX 00:58 · JFK 03:58
    ♥ Do have faith in what you're doing.