jetsonhacks / buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
MIT License
276 stars 152 forks source link

Enabling python3 doesn't work #7

Closed kmonte closed 6 years ago

kmonte commented 6 years ago

I set -DBUILD_opencv_python3=OFF \ to ON and then installed but I cannot import cv2 in a python3 environment.

Alro10 commented 6 years ago

Hi! I add this line after # Python 2.7:

sudo apt-get install -y python3-dev python3-numpy python3-py python3-pytest -y

It works for me.

You can check my repository for installing OpenCV on Ubuntu 16.04:

https://github.com/AlexanderRobles21/buildOpenCVUbuntu

jetsonhacks commented 6 years ago

Please see version 2.0 of this repository for an example with Python 3 support: https://github.com/jetsonhacks/buildOpenCVTX2/releases/tag/v2.0OpenCV3.4