Python 3.7 install fails with anaconda - python

I try to install python 3.7 for anaconda with the following command:
conda install -c anaconda python=3.7
And its showing the following failure message:
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- _license -> python=3.6
- python=3.7
Use "conda info <package>" to see the dependencies for each package.

The following page provides a solution: https://github.com/ContinuumIO/anaconda-issues/issues/9686
and could solve it by creating a new virtual environment with the following command and without the default packages:
conda create -n python37 python=3.7 --no-default-packages

Related

Update python from 3.5 to 3.6 in conda

I want to upgrade my python version from 3.5 to 3.6 to use the new features.
I first copy the base env as base3.6 using Clone base environment in anaconda,
then I want to upgrade the python3.5 to 3.6 using conda install python=3.6, but I have this error
(base3.6) D:\Desktop\GOC-VRPTW-master>conda install python=3.6
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- defaults/win-64::psutil==4.3.1=py35_0 -> python=3.5 -> python_abi=[build=*_cp35m] -> pypy[version='<0a0']
- python=3.6
Use "conda info <package>" to see the dependencies for each package.
Similar problem, but different in details conda install python=3.6 UnsatisfiableError
I find that reinstalling a new environment is a better choice.

UnsatisfiableError conda-forge 3.7

I've been having trouble installing some packages with conda (on python 3.7 on Windows in a conda env). For example if I try install the shap package:
conda install -c conda-forge shap
I get
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- conda-forge/win-64::wincertstore==0.2=py37_1002
- shap
Use "conda info <package>" to see the dependencies for each package.
It installs fine with pip. But how could I resolve the error to use conda instead?

Installation failed while installing pydoop using conda

I have anaconda installed on ubuntu, i am using spyder for python development
I am trying command
conda install -c ijstokes pydoop
it is giving:
Fetching package metadata .............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- pydoop -> python 3.5* -> openssl 1.0.1*
- pydoop -> python 3.5* -> xz 5.0.5
- python 3.6*
Use "conda info " to see the dependencies for each package.
Dont know what to do next please help.
The error states that there is a version conflict between pydoop which has a dependency on python 3.5* and python 3.6*. The easiest way to fix this is to make an environment with Python 3.5.
conda create -n py35 -c ijstokes python=3.5 pydoop
This package for conda is fairly old. Why not try to install pydoop from pypi?
pip install pydoop

Anaconda move to Python 3

I am trying to make my Anaconda Python 2 into Python 3 on my Mac, and have been trying almost everything now. Preferably I would want to move to 3.6 but I am yet to manage to get any Python 3 version working. I started with conda install python=3.6 but got dependency errors. Then I though if I download the Anaconda installer maybe it will update everything and there will be no more dependency errors, but the installation program told me to run conda update anaconda. I still get dependency errors though. This is what I get right now:
For version 3.6:
$ conda install python=3.6
Fetching package metadata .........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- argcomplete -> python 3.3* -> openssl 1.0.1*
- argcomplete -> python 3.3* -> xz 5.0.5
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
and for version 3.5:
$ conda install python=3.5
Fetching package metadata .........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- backports_abc -> python 3.4*
- python 3.5*
Use "conda info <package>" to see the dependencies for each package.
What am I doing wrong and what must I do? (also, why is this so complicated?)
Update: Inspired by https://docs.continuum.io/anaconda/install I tried uninstalling like:
$ anaconda-clean -y
Backup directory: /Users/jonathan/.anaconda_backup/2017-04-24T160137
followed by the installation program again. The installation failed, anaconda is still supposed to be installed...
I know that you have uninstalled and reinstalled but you can create environments with other versions of Python.
conda create --name py36 python=3.6 anaconda
source activate py36
This would create an environment with Python 3.6 and all of the default packages in Anaconda.
You can always create different versions of python in different folders. Simply specify the python version you want to use in a NEW folder. And then activate it.
conda create -n myProject python=3
source activate myProject
I ended up removing the anaconda directory and reinstalling.

Conflict while installing ggplot to conda python 3 environment

I tried to run
conda create --name test python=3
source activate test
conda install -c conda-forge ggplot=0.11.5
but after the last command I get
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ......
Solving package specifications: ....
The following specifications were found to be in conflict:
- ggplot 0.11.5* -> python 2.7*|3.4*|3.5*
- pip (target=pip-9.0.1-py36_1.tar.bz2) -> python 2.7*|3.4*|3.5*
- pip (target=pip-9.0.1-py36_1.tar.bz2) -> setuptools
- python 3.6*
- setuptools (target=setuptools-27.2.0-py36_0.tar.bz2) -> python 2.7*|3.4*|3.5*
- wheel (target=wheel-0.29.0-py36_0.tar.bz2) -> python 2.7*|3.3*|3.4*|3.5*|3.6*
- wheel (target=wheel-0.29.0-py36_0.tar.bz2) -> setuptools
Use "conda info <package>" to see the dependencies for each package.
I am able to run
conda install -c bokeh ggplot=0.9.4
instead, but that is an older version. I am not sure what would be a practical way of resolving this if I want to use the newer version of ggplot.
I could install the newer version in python 2.7 though.
Running 'conda create --name test python=3' will create a Python 3.6 environment by default.
If you take a look here: https://anaconda.org/conda-forge/ggplot/files you will see that the conda-forge version of ggplot is not compatible with Python 3.6. If you create an environment with Python 3.5 then you will be able to run this command again and successfully install your desired version of ggplot.
conda create --name test1 python=3.5
source activate test1
conda install -c conda-forge ggplot=0.11.5

Categories

Resources