Coder Social home page Coder Social logo

Build on Windows about conda-opencv3 HOT 8 CLOSED

menpo avatar menpo commented on June 16, 2024
Build on Windows

from conda-opencv3.

Comments (8)

patricksnape avatar patricksnape commented on June 16, 2024

Yes you can use this on Windows - if you successfully ran the commands I listed, you will get a .tar.gz file (conda prints the path to it when it tells you that you can upload it to binstar) containing the OpenCV3 Python conda package which can be installed as you gave.

You cannot use the git repository because this set of recipes is full of patches that make the code actually compile - these rely on the specific 3.0.0 release of OpenCV3 and OpenCV-contrib.

from conda-opencv3.

cpieringer avatar cpieringer commented on June 16, 2024

I noted that conda requires a package called patch and give me an error message:

Applying patch: C:/ ... _mjpeg_decoder.patch
Did not find 'patch' in C:\Anaconda3....

I tried to install it directly using anaconda 3 but this package depends on python 2.7. Then I installed a version for python 3.4 using pip. But conda cannot use it.

Do you have experience with this issue?

Thank you in advance,
CHristian

from conda-opencv3.

patricksnape avatar patricksnape commented on June 16, 2024

If you have correctly placed the conda binary directory on your path then conda ships with the patch utility. Regardless, you could use something like cmder as your shell, which will also give you patch. Run conda build from inside a cmder shell and enjoy the Unix-like experience :)

I tried to install it directly using anaconda 3 but this package depends on python 2.7. Then I installed a version for python 3.4 using pip. But conda cannot use it.

I don't know what you meant by this? What package depends on Python 2.7? This repo makes builds for all Python versions. Try:

set CONDA_PY=34
conda build conda

To build the Python 3.4 version inside a Python 2.7 Miniconda environment.

from conda-opencv3.

cpieringer avatar cpieringer commented on June 16, 2024

@patricksnape I tried your advice, however patch does not exist in my conda installation. The cmder shell works but it also gives me an error about missing patch.

from conda-opencv3.

patricksnape avatar patricksnape commented on June 16, 2024

Hmm. I'm confused why this works for me and not you! It definitely ships with conda otherwise the conda meta.yaml couldn't contain the patch section. Try grabbing the patch command from here and putting it on your path (maybe in the conda bin folder?) If it still fails as missing patch then you aren't placing it on your path correctly!

from conda-opencv3.

patricksnape avatar patricksnape commented on June 16, 2024

Also - as a note: this is exactly why I provide this repository - because building this software is a nightmare. I cannot stress more that you shouldn't bother trying to build it unless you absolutely have to. Why don't you just use conda?

from conda-opencv3.

cpieringer avatar cpieringer commented on June 16, 2024

@patricksnape I will try download and put patch in the bin folder. I want to build the library beacuse I am using Python 3. Conda only install opencv for python 2.7. But if there are not other solution, I will use Python 2.7 with the conda installation. Thank you very much!

Best regards.

from conda-opencv3.

patricksnape avatar patricksnape commented on June 16, 2024

You don't need to, conda will install OpenCV3 for Python 3, just install it from my repository! Seriously, run these commands:

conda create -n opencv3 python=3
activate opencv3
conda install -c menpo opencv3

That should install OpenCV3 in a Python 3 environment!

from conda-opencv3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.