SimpleCV not working Python3.4 SyntaxError: Missing parentheses in call to 'print'

て烟熏妆下的殇ゞ 提交于 2019-12-12 22:10:14

问题


So I'm trying to install SimpleCV on my Mac which is running OS X 10.10.3 (Yosemite). I have python 3.4.3 installed and pygame is also installed (which I apparently need for SimpleCV). I have installed SimpleCV by running

    sudo pip3 install SimpleCV

and it downloaded and installed SimpleCV-1.3.tar.gz. Then when I try running it in python this is what I get:

$ python3
Python 3.4.3 (default, Jun 10 2015, 19:56:14) 
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import SimpleCV
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/site-packages/SimpleCV/__init__.py", line 3, in <module>
    from SimpleCV.base import *
  File "/usr/local/lib/python3.4/site-packages/SimpleCV/base.py", line 139
    print 'unit test'
                ^
SyntaxError: Missing parentheses in call to 'print'
>>> 

回答1:


im also have been through the same problem before but you can try this

print(unit test)

hope its works!!



来源:https://stackoverflow.com/questions/32728151/simplecv-not-working-python3-4-syntaxerror-missing-parentheses-in-call-to-prin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!