您的当前位置:首页正文

【python】]SyntaxError: Missing parentheses in call to 'print'

2024-11-10 来源:个人技术集锦
jasondeMacBook-Pro:web.py-0.37 jasonhu$ sudo python3 setup.py install
Password:
Traceback (most recent call last):
  File "setup.py", line 6, in <module>
    from web import __version__
  File "/Users/jasonhu/Downloads/web.py-0.37/web/__init__.py", line 14, in <module>
    import utils, db, net, wsgi, http, webapi, httpserver, debugerror
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/db/__init__.py", line 69
    print "var", var
              ^
SyntaxError: Missing parentheses in call to 'print'



jasondeMacBook-Pro:web.py-0.37 jasonhu$ pip3 install web.py==0.40.dev0
Collecting web.py==0.40.dev0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/47/15/c011b80de6c2df69be46d6d79d063496dc901a53820e493de35e891fc904/web.py-0.40.dev0.tar.gz (116kB)
    100% |████████████████████████████████| 122kB 720kB/s
Installing collected packages: web.py
  Running setup.py install for web.py ... done
Successfully installed web.py-0.40.dev0


显示全文