When I install OpenCV 3.0 using Homebrew, it gives me the following directions to associate it with Python 2.7:
If you need Python to find the bindings for this keg-only formula, run:echo / usr / local / opt / opencv3 / lib / python2.7 / site-packages → /usr/local/lib/python2.7/site- packages / opencv3.pth
Although I can find python2.7 site packages in opencv3, no python34 site packages were created. Does anyone know how I can link my installation of OpenCV 3.0 with Python 3?
, OpenCV 3 Python3. , :
brew install python3
brew tap homebrew/science
Python3 pip3. site-packages Python3 : pip3 install numpy
pip3
site-packages
pip3 install numpy
OpenCV3 brew install opencv3 --with-python3
brew install opencv3 --with-python3
echo /usr/local/opt/opencv3/lib/python3.5/site-packages >> /usr/local/lib/python3.5/site-packages/opencv3.pth
, Homebrew Python (, 3.4).
opencv brew install opencv3 --with-python3. , brew info opencv3.
brew info opencv3
Source: https://habr.com/ru/post/1606122/More articles:@transactional и. Все еще исключение get-no-session-found-for-current-thread-exception - spring-mvcNSFileManager.defaultManager (). CreateFileAtPath () returns false - iosCalculate midpoint for snapping - openlayersChrome 45 Version Absolute Problem - jqueryGetting a No Session for Current Thread exception when using getCurrentSession () - javaWhat is @noop in simulacrum in Cats - scalaRegexp with '&' char using preg_replace - htmlMix declarative beans and annotated beans: org.hibernate.HibernateException No session for current thread - springAndroid, push notification using parse.com, automatically launches application - androidHow to remove a class with media - javascriptAll Articles