问题
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