I'm installing cvxpy from cvxgrp. Looking a the link it clearly shows version 1.01 for win-64.
However when I go to run the install
conda install -c cvxgrp cvxpy
it downloads and installs "cvxpy-0.4.10". Updating "all" does not seem to help.
I checked conda info and it shows "platform : win-64".
conda info
Is there a conflict? How can I get the latest version?
If you look at the list of files for version 1.01, you'll see that the win-64 build is only for Python 2.7. The installation instructions seem to suggest that you should use pip to install on Windows if you're using Python 3.
Related
I am trying to install the v2.7.0 of the eccodes package.
But this is not working:
conda install -c conda-forge eccodes=2.7.0
I can see the versions here: https://anaconda.org/conda-forge/eccodes/files?version=2.7.0&page=2
What I am doing wrong with the syntax?
The latest version is 2.13, which I don't want.
If you look through all of the package versions on the first page, you will notice that their label is 'main'. However, the version you want to install has the label 'cf201901'.
You should therefore change your install command to:
conda install -c conda-forge/label/cf201901 eccodes=2.7.0
By including the label in the channel it will be able to find the correct older version.
Alternatively, you can copy the link of the old package directly from the website you were browsing and just run:
conda install https://anaconda.org/conda-forge/eccodes/2.7.0/download/osx-64/eccodes-2.7.0-0.tar.bz2
If you want to install version 2.7.0 for osx
I used the following command below in the Anaconda shell prompt, I am on windows 7.
When I installed in Anaconda Navigator I got a much older version of
cvxpy version 0.4.10 instead of : win-64 v1.0.1.
Here is the details on the conda site:
===============================
https://anaconda.org/cvxgrp/cvxpy
Installers
conda install
linux-64 v1.0.6
win-64 v1.0.1
osx-64 v1.0.6
noarch v0.4.2
To install this package with conda run:
conda install -c cvxgrp cvxpy
=================================
I am wondering if the author of this package may not have properly
setup the more current version on Conda.
This has occurred with other python packages in the past on Conda.
Hope someone would know how to get this installed.
I actually tried to follow the instructions based on another question, but it did not work. See my reasons below in the comment section.
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
I have anaconda and Pip installed. I tried doing
conda install -c anaconda gensim-0.11.1
but it couldn't find the package and the following msg was thrown on the PowerShell.
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ......
Solving package specifications: .
Error: Package missing in current win-64 channels:
- gensim-0.11.1
You can search for this package on anaconda.org with
anaconda search -t conda gensim-0.11.1
Any help would be appreciated. Thanks!
--Conda works well with the machine but even help with Pip would be appreciated.
Any reason you need the 0.11.1 version? That version hasn't been specifically built as a conda package apparently.
At the moment, conda install gensim will easily give you version 0.12.4.
If you really need version 0.11.1, first
conda install scipy pip
then
pip install gensim==0.11.1
I've been trying to install Quantopian zipline (http://www.zipline.io/) python package through Anaconda, but have not been able to. When I run either of the lines below
conda install -c Quantopian zipline
conda install --channel https://conda.anaconda.org/Quantopian zipline
in the Anaconda prompt, I get a short pause and the message
Fetching package metadata...
Solving package specification..
Error: package missing in current win-64 channels:
-zipline
However, if I run the search command "anaconda search -t conda zipline" I can see that Quantopian/zipline has a win-64 compatible package.
I have a 64-bit Windows 8.1 with conda ver 4.0.5.
Please check if the latest zipline has been build in their channel.
the same error happened to one of my colleagues with the last version of zipline (1.1.0) and mac OsX.
We figured out that the guys at Quantopian didn't publish a build for that OS.
Workaround:
1 - try to install zipline via pip (as they say in the guidelines)
or
2 - Download the source code ad build it by yourself :-)
These are the Requirements/ Steps to Make Zipline Work:
Install Microsoft Visual C++ 2010 Express
Download and install python 3.4
Download zipline from github and Extract in C:/
Set Anaconda as project interpreter
Since zipline is compatible with Python 3.4, you need to create an environment with Python 3.4
Run this command in console of IDE:
$conda create -n python34 python=3.4 anaconda(replace py34 with the location of python34 folder)
Now run this command in console:
$activate python34 #Activates the python 3.4 environment
$pip install -e C:\GitHub\zipline (Directory where you extracted zipline)
Ingest data from quandl with below command
$zipline ingest
Hope this helps.
The latest Zipline-Trader version was released. For stable version pip install zipline-trader For more info follow docs for installation.