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

[求助]使用 pyqt5 的 pyuic 时发生异常

  •  
  •   davepkxxx ·
    davepkxxx · Sep 26, 2013 · 17348 views
    This topic created in 4614 days ago, the information mentioned may be changed or developed.
    编程环境是 Windows7 x64 + Python3.3 + PyQt5,运行结果如下:

    C:\Python33\Lib\site-packages\PyQt5\uic>python pyuic.py -h
    Traceback (most recent call last):
    File "pyuic.py", line 28, in <module>
    from .driver import Driver
    SystemError: Parent module '' not loaded, cannot perform relative import
    2 replies    1970-01-01 08:00:00 +08:00
    timonwong
        1
    timonwong  
       Sep 26, 2013   ❤️ 2
    为什么要这么运行,Windows下执行pyuic5.bat就可以了。
    或者:
    python -m PyQt5.uic.pyuic <arguments>
    davepkxxx
        2
    davepkxxx  
    OP
       Sep 26, 2013
    @timonwong 啊?哦!我今晚试试。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5911 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 03:06 · PVG 11:06 · LAX 20:06 · JFK 23:06
    ♥ Do have faith in what you're doing.