I've tried installing directly through conda.
conda install opencv
But through this
The following specifications were found to be in conflict:
- alabaster (target=alabaster-0.7.7-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
- anaconda (target=anaconda-4.0.0-np110py35_0.tar.bz2) -> anaconda-client
...
This error goes over a hundred lines.
I've also tried making it from cmake, but I can't seem to set the Python interpreter and related fields to the ones in Anaconda 3.
I've referred quite a few related posts, but it still didn't solve my problem.
Installing openCV in anaconda3 - Python.h: No such file or directory
How to install python opencv through Conda?
Note: conda install opencv worked fine in Anaconda 2, but I don't know why so many package conflicts arise in Anaconda 3.
conda install -c https://conda.binstar.org/menpo opencv
Its useful.
https://stackoverflow.com/a/27650299
It's the solution:
conda install -c menpo opencv3=3.1.0
Related
I'm trying to install astra-toolbox for python on windows and I'm getting this error.
Anyone have any ideas?
i have tried to install via pip method but it's not working facing the same error as you. if you go to official installation documentation instructions no method to use pip method is given.
i have anaconda installed in my system so i have tried using these commands source:
conda install -c astra-toolbox astra-toolbox
conda install -c astra-toolbox/label/dev astra-toolbox
this solve the issue and astra-toolbox is installed in my system.
PS. this will downgrade package in anaconda. so better to install in separate python environment.
I am trying pip install fbprophet.
I am getting that error: "Microsoft Visual C++ 14.0 is required"
It has been discussed many times (e.g. Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
) , but seems no answer helps me.
My environment:
Windows 7
Anaconda - just installed
Mirosoft VC 2017 - just installed ( It is not version 14, but it is newer - it seems impossible to load 14 (2015) version from MS site )
MS VC Build Tools - also just installed
computer has been relauched after installations
I had the same problem but I solved using these instructions:
https://facebook.github.io/prophet/docs/installation.html
From that page, you can go to the installation instructions for PyStan (which is needed) in which is specified how to install a C++ compiler for the libraries.
tl;dr -> conda install libpython m2w64-toolchain -c msys2
It does not install MS compiler, but it worked on my case and I had also errors regarding the compiler (also had VS2017 installed). I run Windows 10 and latest Anaconda distribution. I hope it helps.
I could not solve it in the latest version of Anaconda which is 5.3.0. Upon extensive googling, I found a thread on github that advised me to go back to the previous version of Anaconda which is 5.2.0.
With that, it worked fine.
Thanks for taking time to look into it though.
VictorHMartin's answer (and following the details from the links provided) worked perfectly fine for me as long as I tried using them with Python 3.7. However, I needed to get them working with Python 3.9, where the last two conda commands failed and I had to use pip instead; here's the list of commands that worked for me:
conda create -n venv (replace venv name as you like)
activate venv
conda install libpython m2w64-toolchain -c msys2
conda install numpy pandas cython -c conda-forge
conda install matplotlib scipy plotly -c conda-forge (fbprophet optionally needs plotly for interactive plots)
pip install pystan (conda install pystan -c conda-forge failed here for P3.9)
pip install fbprophet (conda install fbprophet -c conda-forge failed here for P3.9)
I add -c conda-forge and seems succeeded.
try this:
conda install -c conda-forge fbprophet
I am new to Linux and trying to install Python 3.6 using Anaconda, given the instructions here.
When I run conda install python==3.6, I get the following:
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- jupyter_contrib_nbextensions -> jupyter_nbextensions_configurator[version='>=0.2.8'] -> python=3.5
- python==3.6
Use "conda info <package>" to see the dependencies for each package.
How do I fix this error? I already have Python 3.5 and I'd like to upgrade to 3.6 .
This seems similar to another question (if you are trying to update an already installed version of anaconda)
One option is to update anaconda using
conda update --all
For more on this look to: How do I update Anaconda?
Also, if you are entering
conda install python==$pythonversion$
It should be
conda install python==3.6
If you are going to Python 3.6 (just checking)
When I was trying to install a module 'pymc' through anaconda environments, it showed the error message as follows:
UnsatisfiableError: The following specifications were found to be in
conflict:
blaze -> pyyaml -> python[version='>=2.7,<2.8.0a0'] -> vc=9
blaze -> pyyaml -> yaml -> *[track_features=vc9]
pymc Use "conda info " to see the dependencies for each package.
I am using Python 2.7.14, and I installed anaconda 1.6.9 on a Windows. I am new to Python. I first tried to use cmd to install the module pymc and I ran into a lot of problems such as the requirement for install g77 compiler on windows. After I got the compiler from MinGW and also installed the Microsoft Visual C++ Compiler for Python, I still cannot install the module because there came new errors. That is when I found there is pymc module listed in anaconda environment that I can add manually, but it showed this conflict error.
I do not know whether the conflict comes from all those other stuff I installed above or not. Please HELP! Thanks!
Create a new conda environment for Python 2.7:
conda create -n my_pymc_env python=2.7
Activate it:
conda activate my_pymc_env
Alternatively, for older conda versions on Windows:
activate my_pymc_env
on Unix (including Mac OS X):
source activate my_pymc_env
Once activated, install your packages:
conda install pymc blaze
If you still get this message, install the Anaconda client:
conda install anaconda-client
and search for your package:
anaconda search mypackage
Look for a channel that has the right version for you and install:
conda install -c channel_with_right_version mypackage
Can anyone tell me commands to get contrib module for anaconda
I need that module for
matches = flann.knnMatch(des1,des2,k=2)
to run correctly
error thrown is
cv2.error: ......\modules\python\src2\cv2.cpp:163: error: (-215) The data should normally be NULL! in function NumpyAllocator::allocate
Also I am using Anaconda openCV version 3, and strictly dont want to switch to lower versions
P.S. as suggested at many places to edit file cv2.cpp option is not available with anaconda.
I would recommend installing pip in your anaconda environment then just doing: pip install opencv-contrib-python. This comes will opencv and opencv-contrib.
Anaconda supports pip install to install package into conda environment. You can download OpenCV 3.2.0 with opencv_contrib from this well known Unofficial Windows Binaries for Python Extension Packages website. See the filename below for the right version. Then type the command in Anaconda Prompt window to install the package:
For Python 3.5 and 64-bit Windows:
pip install opencv_python‑3.2.0+contrib‑cp35‑cp35m‑win_amd64.whl
For Python 3.6 and 64-bit Windows:
pip install opencv_python‑3.2.0+contrib‑cp36‑cp36m‑win_amd64.whl
Most of the OpenCV 3.2.0 packages in Anaconda repository didn't specific if they come with opencv_contrib. The pip install approach is easier and proven, see one of the SO post. The only drawback is that conda list will not show pip installed package there but actually it's.
However, if you want to have trial on conda install, below is the command for installing OpenCV 3.2.0 for Python 3.5 or 3.6 but likely without opencv_contrib.
conda install -c conda-forge opencv=3.2.0
Hope this help.
You can try this: https://anaconda.org/michael_wild/opencv-contrib
To install this package with conda run:
conda install -c michael_wild opencv-contrib
These anaconda packages include the contrib modules with base OpenCV3. Though the file list says it's currently for Windows only!
The question is old but I thought to update the answer with the latest information. My Anaconda version is 2019.10 and build channel is py_37_0 . I used pip install opencv-python==3.4.2.17 and pip install opencv-contrib-python==3.4.2.17. Now they are also visible as installed packages in Anaconda navigator and I am able to use patented methods like SIFT etc.
Method 1: in Anaconda Prompt write this, will install opencv-contrib v4.6
pip install opencv-contrib-python
Method 2: Install previous version of opencv-contrib v3.3.1
According to https://anaconda.org/michael_wild/opencv-contrib it says it support win64bit only and python 3.6.x.
So, first you need to create new enviroment support python 3.6
conda create --opencv_contrib36 python=3.6.13
then, install the packages
conda install -c michael_wild opencv-contrib
There is repo in conda-forge which includes opencv-contrib: https://github.com/conda-forge/opencv-feedstock
To use it:
conda install --channel=conda-forge libopencv opencv py-opencv
if you run into Numpy error, try pinning more recent version (of Numpy).
This worked for me in Windows 10 on Anaconda 5.3 with python 3.6
conda install -c conda-forge opencv