我一直在尝试使用这个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
但它始终失败,并显示以下错误消息:
Using Anaconda API: https://api.anaconda.org
Solving environment: failed
ResolvePackageNotFound:
- wheel==0.30.0=py_1
- appnope==0.1.0=py36_0
它是否在搜索错误的频道?如果我只是在基础conda安装中安装它们,我可以找到这些包。谢谢你的帮助。
问题是蟒蛇不是骗我的。这些包在linux通道中不存在,但它们确实存在于OSX通道中。所以这是一个特定于平台的问题。
有同样的问题。通过删除构建版本和包版本来解决它(除了必要的包版本,例如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