failed to create anaconda environment ResolvePackageNotFound

mnky9800n picture mnky9800n · Jan 25, 2018 · Viewed 14.7k times · Source

I've been trying to use this yml file to create an environment (I created the yml):

name: testenv
channels:
- esri
- scitools
- obspy
- conda-forge
- defaults
dependencies:
- appnope=0.1.0=py36_0
- libgfortran=3.0.0=0
- pip=9.0.1=py36_0
- python=3.6.2=0
- wheel=0.30.0=py_1
- pip:
  - ipython-genutils==0.2.0
  - jupyter-client==5.1.0
  - jupyter-console==5.1.0
  - jupyter-core==4.3.0
  - prompt-toolkit==1.0.15

however it always fails with the following error message:

Using Anaconda API: https://api.anaconda.org
Solving environment: failed

ResolvePackageNotFound:
  - wheel==0.30.0=py_1
  - appnope==0.1.0=py36_0

Is it searching the wrong channels for it? I can find these packages if I simply install them in the base conda install. Thanks for your help.

Answer

mnky9800n picture mnky9800n · Jan 25, 2018

The problem is that the Anaconda isn't lying to me. Those packages don't exist in the linux channels however they do exist in the OSX channels. So it is a platform specific problem.