Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to create anaconda environment ResolvePackageNotFound

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.

like image 320
mnky9800n Avatar asked Jan 25 '18 09:01

mnky9800n


People also ask

Does Anaconda install PIP?

Both pip and conda are included in Anaconda and Miniconda, so you do not need to install them separately. Conda environments replace virtualenv, so there is no need to activate a virtualenv before using pip.


2 Answers

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.

like image 61
mnky9800n Avatar answered Sep 18 '22 11:09

mnky9800n


Had this same issue. Solved it by removing both the build versions AND package version (except for necessary package versions such as python=3.6.2 and any others.) The end yml file would look like this in order to be fully cross-platform:

name: testenv
channels:
- esri
- scitools
- obspy
- conda-forge
- defaults
dependencies:
- appnope
- libgfortran
- pip
- python=3.6.2
- wheel
- pip:
  - ipython-genutils
  - jupyter-client==5.1.0
  - jupyter-console
  - jupyter-core
  - prompt-toolkit
like image 34
msamon Avatar answered Sep 17 '22 11:09

msamon