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.
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.