Witam, od pewnego czasu ucze się Pythona i trafiłem na dość fajną biblioteke Simplecv -> http://tutorial.simplecv.org/en/latest/examples/helloworld.html
Mam jednak problem z wywołaniem programu Hello Word.
Dostaje błędy.
C:\Users\pawel\Desktop\cam\venv\Scripts\python.exe C:/Users/pawel/Desktop/cam/cam.py
Traceback (most recent call last):
File "C:/Users/pawel/Desktop/cam/cam.py", line 1, in <module>
import SimpleCV
File "C:\Users\pawel\Desktop\cam\venv\lib\site-packages\SimpleCV\__init__.py", line 3, in <module>
from SimpleCV.base import *
File "C:\Users\pawel\Desktop\cam\venv\lib\site-packages\SimpleCV\base.py", line 139
print 'unit test'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('unit test')?
Process finished with exit code 1
W pliku cam.py mam taki kod
import SimpleCV
cam = SimpleCV.Camera()
while True:
img = cam.getImage()
img.show()
SimpleCV zainstalowałem przez terminal wbudowany w Pycharm Professional.
(venv) C:\Users\pawel\Desktop\cam>pip install SimpleCV
Collecting SimpleCV
Using cached SimpleCV-1.3.tar.gz (213 kB)
Using legacy 'setup.py install' for SimpleCV, since package 'wheel' is not installed.
Installing collected packages: SimpleCV
Running setup.py install for SimpleCV ... done
Successfully installed SimpleCV-1.3
Czy ktoś mógłby mnie naprowadzić co robię źle.