mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
py_tutorials: add print() braces for python3
This commit is contained in:
@@ -30,7 +30,7 @@ $ yum install numpy opencv*
|
||||
Open Python IDLE (or IPython) and type following codes in Python terminal.
|
||||
@code{.py}
|
||||
>>> import cv2
|
||||
>>> print cv2.__version__
|
||||
>>> print( cv2.__version__ )
|
||||
@endcode
|
||||
If the results are printed out without any errors, congratulations !!! You have installed
|
||||
OpenCV-Python successfully.
|
||||
@@ -218,7 +218,7 @@ Installation is over. All files are installed in /usr/local/ folder. But to use
|
||||
should be able to find OpenCV module. You have two options for that.
|
||||
|
||||
-# **Move the module to any folder in Python Path** : Python path can be found out by entering
|
||||
import sys;print sys.path in Python terminal. It will print out many locations. Move
|
||||
`import sys; print(sys.path)` in Python terminal. It will print out many locations. Move
|
||||
/usr/local/lib/python2.7/site-packages/cv2.so to any of this folder. For example,
|
||||
@code{.sh}
|
||||
su mv /usr/local/lib/python2.7/site-packages/cv2.so /usr/lib/python2.7/site-packages
|
||||
|
||||
@@ -36,7 +36,7 @@ Installing OpenCV from prebuilt binaries
|
||||
-# Open Python IDLE and type following codes in Python terminal.
|
||||
@code
|
||||
>>> import cv2
|
||||
>>> print cv2.__version__
|
||||
>>> print( cv2.__version__ )
|
||||
@endcode
|
||||
|
||||
If the results are printed out without any errors, congratulations !!! You have installed
|
||||
|
||||
Reference in New Issue
Block a user