Why is conda rejecting every version of python I try? - python

I'm trying to install a package from Anaconda Cloud called pyradiomics. So I wrote this Dockerfile:
FROM continuumio/miniconda3:latest
RUN conda install -c radiomics pyradiomics
which errored out with the message:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pyradiomics -> python[version='>=3.8,<3.9.0a0']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The error message seems to indicate I need version 3.8 of python specifically, so I tried to install that
FROM continuumio/miniconda3:latest
RUN conda install -c anaconda python=3.8 && python --version && conda install -c radiomics pyradiomics
but now get the error:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pyradiomics -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.4,<3.5.0a0']
Your python: python=3.8
When I have python 3.7 it wants 3.8 and when I have 3.8 it wants some other version. Is there a way to get conda to automagically resolve these version issues and install (all) the version(s) of python necessary? Or how would I best manually resolve this?

3.8 doesn't seem to be supportd as per https://pyradiomics.readthedocs.io/en/latest/installation.html#install-via-conda, though the 3.7 install conditions might contain an error.
In this case you can try to contact the authors or try with pip.

Related

My anaconda version is 1.9.12 and Python is 3.8.3 but when I want to install tensorflow I get a problem

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
tensorflow -> python[version='3.5.*|3.6.*|3.7.*']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.
Which version of TensorFlow are you trying to install? It looks like you are trying to install an older version of TensorFlow.
Try this:
conda install tensorflow==2.2
This version is supported by Python 3.8.l
open cmd and write pip install tensorflow
or in anaconda prompt write conda install tenorflow

UnsatisfiableError: The following specifications were found to be in conflict: conda 4.0.8* -> conda-env <2.5 -> python 2.7* - python 3.6*

I am new to Python. I am trying to use Graphlab create launcher to import Graphlab libraries in my python notebook. I already have Anaconda installed on my MacBook Pro(OSX).
When I start to run Graphlab create launcher, I get following error,
UnsatisfiableError: The following specifications were found to be in conflict:
- conda 4.0.8* -> conda-env <2.5 -> python 2.7*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
You can find the detail of the log at https://github.com/jaysara/Python-ML/blob/master/launcher-install-log.txt
Can anyone help, why am I getting this error ?
You will have to first install latest update of anaconda and then install graphlab. The best way to use graphlab is using a Virtual env that I guess you are using. You may try in your terminal
conda update conda
To first get latest anaconda that may support graphlab. You may like to read the documentation on Graphlab how to create virtual env and install graphlab to correct if you have done any mistake : Link
I was having problems with:
conda install -y -c bioconda cwltool
I solved it by :
conda config --add channels conda-forge
the package (cwltool) I was trying to install could not solve dependencies that where satisfied in a different channel

Menpofit dlib: UnsatisfiableError during installation on Windows 10 using conda

I have been trying to install menpofit on a clean installation of anaconda for a while now. I have followed the instructions on the menpo project website for Windows, but I get the following error when I try to install menpofit using conda install -c menpo menpofit.
Error Message:
UnsatisfiableError: The following specifications were found to be in conflict:
- menpofit -> dlib 18.16 -> boost 1.56.0 -> python 3.5*
- menpofit -> menpo 0.6.* -> matplotlib 1.4.* -> pyparsing 2.0.1
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
What I have tried:
Running conda install -c menpo menpo did not produce an error. I attempted to install dlib and boost using conda-forge, but this did not change the error message. I tried creating the conda environment using python 3.5. This seemed to install, but I quickly ran into a host of new problems with modules not being found and plenty of other errors that deserve their own question threads. Rebooting the computer or reinstalling anaconda did not seem to change anything.
For reference, I am running python 3.6 on a 32bit Window 10 computer.
Any suggestions would be greatly appreciated!
I eventually settled on using python 2.7 (conda create -n envname python=2.7). This seems to have solved all of my dependency issues.

How to fix Python version error when trying to download opencv3?

I have Anaconda installed and I used the following command in the Command Prompt:
conda install -c menpo opencv3
Which returned this error:
UnsatisfiableError: The following specifications were found to be in conflict:
- opencv3 -> python 2.7*
- python 3.6*
Use "conda info<package> to see the dependencies for each package.
I attempted to find a solution here without success. My python version on Anaconda is 3.6. Why does it return this error, and how do I fix it?
openCV doesn't currently support Python 3.6. You need to use a different version of Python.
This page may be of help: installing-opencv-on-windows-10-with-python-3-6-and-anaconda-3-6.
It looks like you need to download Python 2 to be able to use this. It's more than fine to have more than 1 version of python installed on your machine. But I wouldn't suggest more than one version of 3 and more than one version of 2, because then it can get confusing.

Conda install BLPAPI

I followed the answer in:
Anaconda - Install blpapi in environment
but could not comment because I don't reputation high enough. When I use conda install -c dsm/blpapi I get the following:
Fetching package metadata ...........
Solving package specifications: ....
UnsatisfiableError: The following specifications were found to be in conflict:
- blpapi
- python 3.5*
Use "conda info <package>" to see the dependencies for each package.
This is using a virtual environment with Python 3.5 installed. Any thoughts on why this works for Pythonic but not me?
There is no built package for python=3.5. If you look under the files section of the repo in the dsm channel you will see
linux-64/blpapi-3.9.0-py36_0.tar.bz2
win-64/blpapi-3.9.0-py27_0.tar.bz2
win-64/blpapi-3.5.5-py27_0.tar.bz2
linux-64/blpapi-3.5.5-py27_0.tar.bz2
Switching to Python 3.6 should get this to work.
did you try ? :
conda update --all
conda create -n py35 python=3.5
activate py35
conda install -c dsm blpapi=3.9.0
you can also download from :
https://www.bloomberglabs.com/api/libraries/
and put it in the repository of python 3.5 library
Since this question was posted, Bloomberg put the blpapi on conda-forge,
Which has more versions of the blpapi and python supported.
https://anaconda.org/conda-forge/blpapi

Categories

Resources