推荐学习书目
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
fucker
V2EX  ›  Python

Aptana 总是红叉的问题,很费解很头疼

  •  
  •   fucker · Aug 21, 2014 · 4041 views
    This topic created in 4298 days ago, the information mentioned may be changed or developed.
    新买了个机器,win7 x64。
    安装python2.7.8 64位版、Aptana 3.6
    Aptana启动运行没有问题,但是代码总是报错红叉
    例1:
    from os import system 就会报错,运行是没有问题的。
    例2:
    if True: 这里也会报错,运行还是没有问题。
    例3:
    from PyQt4.QtCore import Qt 还是会有红叉。。

    尝试过重新配置python interpreter,失败
    forced builtins,失败

    无计可施了。。
    特来问问有没有大神知道解决办法的。。。感激不尽。。。
    Supplement 1  ·  Aug 21, 2014
    三天了一直没有办法解决,最后妥协换Aptana3.4.2了,另外感谢2L 3L不让我单机。。。
    6 replies    2014-08-22 04:35:40 +08:00
    fucker
        1
    fucker  
    OP
       Aug 21, 2014
    还有。。
    if __name__ == '__main__':
    就提示 undefined variable:__name__
    loading
        2
    loading  
       Aug 21, 2014 via Android
    这玩意还能写 python ,不是只用来写前端的吗?
    ruchee
        3
    ruchee  
       Aug 21, 2014   ❤️ 1
    @loading PHP、Python、Ruby、Node.js都可以写,其中对Ruby和JavaScript的良好支持是其主要特色
    xiaket
        4
    xiaket  
       Aug 21, 2014
    老老实实换成Linux/Mac来写python吧, windows做python开发后面坑也超级多的...
    ericls
        5
    ericls  
       Aug 21, 2014
    @xiaket 经过你的提醒 我才发现aptana有windows版本。
    fucker
        6
    fucker  
    OP
       Aug 22, 2014
    @xiaket 我本机一直是用MAC开发python,后面要改用WINDOWS也是因为一些蛋疼的原因,没办法。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2550 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
    ♥ Do have faith in what you're doing.