简体   繁体   English

无法创建anaconda环境ResolvePackageNotFound

[英]failed to create anaconda environment ResolvePackageNotFound

I've been trying to use this yml file to create an environment (I created the yml): 我一直在尝试使用这个yml文件来创建一个环境(我创建了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. 如果我只是在基础conda安装中安装它们,我可以找到这些包。 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. 这些包在linux通道中不存在,但它们确实存在于OSX通道中。 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: 通过删除构建版本和包版本来解决它(除了必要的包版本,如python=3.6.2和任何其他版本。)结束yml文件看起来像这样,以便完全跨平台:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM